Skip to content

Commit 83260a6

Browse files
committed
refactor: 代理设置挪到资源更新设置部分
1 parent 0815723 commit 83260a6

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

aao/ui/settings_page.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,6 @@ def _build_ui(self) -> None:
201201
self.chk_api.setChecked(True)
202202
form.addRow(self.chk_api)
203203

204-
self.edit_proxy = QLineEdit()
205-
self.edit_proxy.setPlaceholderText("可选,如 http://127.0.0.1:7890(资源同步/更新使用)")
206-
form.addRow("下载代理:", self.edit_proxy)
207-
208204
self.btn_save = QPushButton("💾 保存设置")
209205
form.addRow(self.btn_save)
210206
root.addWidget(run_box)
@@ -214,6 +210,11 @@ def _build_ui(self) -> None:
214210
rl = QVBoxLayout(res_box)
215211
self.lbl_res_status = QLabel(self._res_status_text())
216212
rl.addWidget(self.lbl_res_status)
213+
proxy_form = QFormLayout()
214+
self.edit_proxy = QLineEdit()
215+
self.edit_proxy.setPlaceholderText("可选,如 http://127.0.0.1:7890(资源同步/更新使用)")
216+
proxy_form.addRow("下载代理:", self.edit_proxy)
217+
rl.addLayout(proxy_form)
217218
btn_row = QHBoxLayout()
218219
self.btn_sync = QPushButton("🔄 同步资源")
219220
self.btn_sync_remote = QPushButton("🌐 强制远程同步")

0 commit comments

Comments
 (0)