修复:

- 退出登录后立即触发登录流程(隐藏主窗口弹登录框,取消则退出),不再停留在无节点的空闲状态
- "nodes.json 中没有可用节点"弹窗增加提示:可在右下角设置中退出登录后重新登录获取节点配置
This commit is contained in:
RoyirinRosmontis
2026-08-23 14:23:43 +08:00
parent 115d339d3b
commit b414c45d5b
+6 -2
View File
@@ -1848,9 +1848,11 @@ class MainWindow(QWidget):
# ── 设置 ──
def _show_settings_dialog(self):
"""打开设置弹窗(代理运行中锁定端口修改);退出登录后刷新节点标题。"""
"""打开设置弹窗(代理运行中锁定端口修改);退出登录后立即触发登录流程。"""
SettingsDialog(self, port_locked=self._proxy_set_by_us).exec_()
self._refresh_subtitle()
if _endpoint_domain() == "???":
self._maybe_show_login() # 退出登录后重新走登录(隐藏主窗口/取消退出)
# ── 节点登录 ──
def _maybe_show_login(self):
@@ -1878,7 +1880,9 @@ class MainWindow(QWidget):
return
nodes = _reload_nodes()
if not nodes:
QMessageBox.information(self, "提示", "nodes.json 中没有可用节点")
QMessageBox.information(self, "提示",
"nodes.json 中没有可用节点。\n"
"可在右下角「设置」中退出登录后重新登录获取节点配置。")
return
menu = QMenu(self)
menu.setStyleSheet(f"""