提交 c52659a3 编写于 作者: 郭维嘉

fix

上级 63545a72
...@@ -78,12 +78,6 @@ function createDock(window) { ...@@ -78,12 +78,6 @@ function createDock(window) {
label: "退出" label: "退出"
} }
]); ]);
// appIcon.on("click", () => {
// appIcon.popUpContextMenu(contextMenu);
// });
// appIcon.setContextMenu(contextMenu);
// resolve(appIcon);
app.dock.setMenu(dockMenu); app.dock.setMenu(dockMenu);
app.dock.setIcon(appIcon); app.dock.setIcon(appIcon);
......
...@@ -43,10 +43,9 @@ class initApp { ...@@ -43,10 +43,9 @@ class initApp {
if (commonConst.production() && !app.isInApplicationsFolder()) { if (commonConst.production() && !app.isInApplicationsFolder()) {
app.moveToApplicationsFolder(); app.moveToApplicationsFolder();
} else { } else {
// app.dock.hide() app.dock.hide()
} }
} else { } else {
app.moveToApplicationsFolder();
app.disableHardwareAcceleration(); app.disableHardwareAcceleration();
} }
} }
...@@ -55,7 +54,7 @@ class initApp { ...@@ -55,7 +54,7 @@ class initApp {
const readyFunction = () => { const readyFunction = () => {
this.createWindow(); this.createWindow();
createTray(main.getWindow()); createTray(main.getWindow());
createDock(); // createDock();
autoUpdate(); autoUpdate();
}; };
if (!app.isReady()) { if (!app.isReady()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册