增加微信多开功能

This commit is contained in:
2026-04-07 18:54:31 +08:00
parent 3051f6ca49
commit 621d752a8d
7 changed files with 317 additions and 35 deletions
+6
View File
@@ -507,6 +507,7 @@ class PanelWindow(QWidget):
每项: (tooltip, qtawesome_icon, callback)
排除重启/退出。"""
return [
("微信多开", "fa5b.weixin", self._open_wechat_multi),
("管理员运行 CMD", "fa5s.terminal", self._open_admin_cmd),
("管理员运行 PowerShell", "fa5b.windows", self._open_admin_powershell),
("打开默认浏览器", "fa5s.globe", self._open_default_browser),
@@ -913,6 +914,11 @@ class PanelWindow(QWidget):
import webbrowser
webbrowser.open("https://www.baidu.com")
def _open_wechat_multi(self):
from ui.wechat_multi import WechatMultiDialog
dlg = WechatMultiDialog(self)
dlg.exec()
def _toggle_theme(self):
theme.set_theme("light" if theme.name() == "dark" else "dark")
self._apply_theme()