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