mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 ipcRenderer.send(Constants.SIYUAN_CMD, "minimize");
This commit is contained in:
@@ -197,7 +197,11 @@ export const initWindow = async (app: App) => {
|
||||
});
|
||||
};
|
||||
|
||||
ipcRenderer.send(Constants.SIYUAN_EVENT, "onEvent");
|
||||
if (window.siyuan.config.system.autoLaunch2 === 2) {
|
||||
ipcRenderer.send(Constants.SIYUAN_CMD, "minimize");
|
||||
}
|
||||
|
||||
ipcRenderer.send(Constants.SIYUAN_EVENT);
|
||||
ipcRenderer.on(Constants.SIYUAN_EVENT, (event, cmd) => {
|
||||
if (cmd === "focus") {
|
||||
// 由于 https://github.com/siyuan-note/siyuan/issues/10060 和新版 electron 应用切出再切进会保持光标,故移除 focus
|
||||
|
||||
Reference in New Issue
Block a user