Skip to content

Commit 405a371

Browse files
committed
chore: remove delayedHideAppIcon() (gitify-app#810)
1 parent 58f4ce2 commit 405a371

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

main.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,6 @@ const browserWindowOpts = {
3030
},
3131
};
3232

33-
const delayedHideAppIcon = () => {
34-
if (app.dock && app.dock.hide) {
35-
// Setting a timeout because the showDockIcon is not currently working
36-
// See more at https://github.com/maxogden/menubar/issues/306
37-
setTimeout(() => {
38-
app.dock.hide();
39-
}, 1500);
40-
}
41-
};
42-
4333
app.on('ready', async () => {
4434
await onFirstRunMaybe();
4535
});
@@ -49,11 +39,10 @@ const menubarApp = menubar({
4939
index: `file://${__dirname}/index.html`,
5040
browserWindow: browserWindowOpts,
5141
preloadWindow: true,
42+
showDockIcon: false,
5243
});
5344

5445
menubarApp.on('ready', () => {
55-
delayedHideAppIcon();
56-
5746
menubarApp.tray.setIgnoreDoubleClickEvents(true);
5847

5948
autoUpdater.checkForUpdatesAndNotify();

0 commit comments

Comments
 (0)