File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -40,18 +40,6 @@ export function createTrayIcon(getMainWindow: () => BrowserWindow | null) {
40
40
trayAny . updateContextMenu ( ) ;
41
41
} ;
42
42
43
- trayAny . showWindow = ( ) => {
44
- const mainWindow = getMainWindow ( ) ;
45
- if ( mainWindow ) {
46
- if ( ! mainWindow . isVisible ( ) ) {
47
- mainWindow . show ( ) ;
48
- }
49
-
50
- trayAny . forceOnTop ( mainWindow ) ;
51
- }
52
- trayAny . updateContextMenu ( ) ;
53
- } ;
54
-
55
43
trayAny . updateContextMenu = ( ) => {
56
44
const mainWindow = getMainWindow ( ) ;
57
45
@@ -75,7 +63,7 @@ export function createTrayIcon(getMainWindow: () => BrowserWindow | null) {
75
63
trayAny . setContextMenu ( trayContextMenu ) ;
76
64
} ;
77
65
78
- tray . on ( 'click' , trayAny . showWindow ) ;
66
+ tray . on ( 'click' , trayAny . toggleWindowVisibility ) ;
79
67
80
68
tray . setToolTip ( LOCALE_DEFAULTS . app_name ) ;
81
69
trayAny . updateContextMenu ( ) ;
You can’t perform that action at this time.
0 commit comments