Skip to content

Commit

Permalink
Remove mainwindow.show
Browse files Browse the repository at this point in the history
  • Loading branch information
dkdkwizard committed Feb 14, 2024
1 parent 54d7489 commit 81b4aa1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions electron-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,6 @@ function createWindow() {
trafficLightPosition: { x: 12, y: 14 },
vibrancy: 'light'
});
console.log(mainWindow);
mainWindow.show();

electronRemote.enable(mainWindow.webContents);

Expand Down Expand Up @@ -464,7 +462,6 @@ const onMenuClick = (data) => {
}

const init = () => {
console.trace('init');
menuManager = new MenuManager();
menuManager.on(events.MENU_CLICK, onMenuClick);
menuManager.on('NEW_APP_MENU', () => {
Expand All @@ -490,10 +487,6 @@ app.whenReady().then(() => {
})
});

setTimeout(() => {
init();
}, 30000);

app.on('window-all-closed',() => {
if (process.platform !== 'darwin') app.quit()
});
Expand Down

0 comments on commit 81b4aa1

Please sign in to comment.