feat: 增加当前设备保存与设备号生成 (#6)

This commit is contained in:
chengma
2026-08-06 15:57:59 +08:00
parent f6da83666b
commit ed663904bb
2 changed files with 51 additions and 2 deletions
+8
View File
@@ -223,6 +223,9 @@ class SettingsPage(QWidget):
self.deviceNameInput.setMaxLength(50)
self.deviceNameInput.setAccessibleName("当前客户端设备名")
self.currentDeviceSaveButton = PushButton(FIF.SAVE, "保存", self)
self.currentDeviceSaveButton.setAccessibleName("保存当前设备信息")
self.currentDeviceCard = self._build_current_device_card()
self.addressInput = LineEdit(self)
@@ -314,6 +317,11 @@ class SettingsPage(QWidget):
form.addRow(deviceIdLabel, self.deviceIdInput)
form.addRow(deviceNameLabel, self.deviceNameInput)
layout.addLayout(form)
commandLayout = QHBoxLayout()
commandLayout.addStretch(1)
commandLayout.addWidget(self.currentDeviceSaveButton)
layout.addLayout(commandLayout)
return card
def _build_android_device_card(self) -> CardWidget: