mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 19:44:59 +00:00
feat: get ip failed tips
This commit is contained in:
parent
bbe8bd07bc
commit
cfc8dcdd42
1 changed files with 8 additions and 4 deletions
|
@ -46,14 +46,18 @@ Dialog::Dialog(QWidget *parent) :
|
|||
}
|
||||
} else if (args.contains("show") && args.contains("wlan0")) {
|
||||
QString ip = m_adb.getDeviceIPFromStdOut();
|
||||
if (!ip.isEmpty()) {
|
||||
ui->deviceIpEdt->setText(ip);
|
||||
if (ip.isEmpty()) {
|
||||
log = "ip not find, connect to wifi?";
|
||||
break;
|
||||
}
|
||||
ui->deviceIpEdt->setText(ip);
|
||||
} else if (args.contains("ifconfig") && args.contains("wlan0")) {
|
||||
QString ip = m_adb.getDeviceIPFromStdOut();
|
||||
if (!ip.isEmpty()) {
|
||||
ui->deviceIpEdt->setText(ip);
|
||||
if (ip.isEmpty()) {
|
||||
log = "ip not find, connect to wifi?";
|
||||
break;
|
||||
}
|
||||
ui->deviceIpEdt->setText(ip);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue