You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Ideas] 桌面版托盘菜单应提供「重启 Desktop」入口,并暴露宿主侧 restart API 供插件调用
#8899
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
问题描述
桌面版(Electron,Windows)右下角系统托盘右键菜单目前只有「打开」和「退出」两项。每次修改插件 / 函数插件(Cordis 插件)的 Node 宿主代码后,因为宿主侧插件没有热重载,必须退出再重新打开整个桌面客户端才能生效——而托盘菜单里没有任何“重启”入口,只能走「退出」再手动重新启动,对做插件开发 / 调音效这类需要反复重启验证的场景非常不方便。
建议方案
托盘菜单增加「重启 Desktop」项:点击后调用桌面主进程的有序重启(Electron relaunch),等价于退出后立刻重新打开,避免用户手动来回操作。
暴露宿主侧重启 API:在桌面 profile 提供一个稳定的入口(例如 desktopActions.requestRestart() 或类似 RPC),让第三方插件也能在界面里放一个“重启”按钮。这样:
背景 / 现状
希望能把「重启」做成一等公民:既在托盘菜单里有,也给插件一个干净的可调用接口。谢谢!
All reactions