File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff 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-
4333app . 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
5445menubarApp . on ( 'ready' , ( ) => {
55- delayedHideAppIcon ( ) ;
56-
5746 menubarApp . tray . setIgnoreDoubleClickEvents ( true ) ;
5847
5948 autoUpdater . checkForUpdatesAndNotify ( ) ;
You can’t perform that action at this time.
0 commit comments