feat: 支持 USB 设备转 Wi-Fi ADB (#25)

This commit is contained in:
chengma
2026-08-07 14:42:00 +08:00
parent bf81bad741
commit d478e690b6
5 changed files with 741 additions and 3 deletions
+9
View File
@@ -250,8 +250,16 @@ class SettingsPage(QWidget):
self.searchButton = PushButton(FIF.SEARCH, "搜索", self)
self.connectButton = PushButton(FIF.LINK, "连接", self)
self.convertWifiButton = PushButton(FIF.WIFI, "转为 Wi-Fi", self)
self.convertWifiButton.setAccessibleName(
"将勾选的 USB Android 设备转为 Wi-Fi 连接"
)
self.convertWifiButton.setToolTip(
"开启 ADB 5555,并在拔掉 USB 后重新连接"
)
self.saveButton = PushButton(FIF.SAVE, "保存", self)
self.deleteButton = PushButton(FIF.DELETE, "删除", self)
self.convertWifiButton.setEnabled(False)
self.saveButton.setEnabled(False)
self.deleteButton.setEnabled(False)
@@ -360,6 +368,7 @@ class SettingsPage(QWidget):
commandLayout = QHBoxLayout()
commandLayout.setSpacing(10)
commandLayout.addWidget(self.searchButton)
commandLayout.addWidget(self.convertWifiButton)
commandLayout.addStretch(1)
commandLayout.addWidget(self.saveButton)
commandLayout.addWidget(self.deleteButton)