File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
frontend/src/targets/electron Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ const { appUpdateService } = ServiceRegistry.getInstance();
17
17
const sentryService = new SentryMainService ( ) ;
18
18
sentryService . init ( ) ;
19
19
20
+ ipcMain . handle ( "showDirectoryPicker" , showDirectoryPicker ) ;
21
+
20
22
async function createWindow ( ) {
21
23
win = new BrowserWindow ( {
22
24
width : minWidth ,
@@ -29,8 +31,6 @@ async function createWindow() {
29
31
} ,
30
32
} ) ;
31
33
32
- ipcMain . handle ( "showDirectoryPicker" , showDirectoryPicker ) ;
33
-
34
34
// Open urls in the user's browser
35
35
win . webContents . setWindowOpenHandler ( ( data ) => {
36
36
shell . openExternal ( data . url ) ;
@@ -48,6 +48,7 @@ async function createWindow() {
48
48
49
49
app . on ( "ready" , ( ) => {
50
50
setupMenu ( win ) ;
51
+ console . log ( "ready" ) ;
51
52
createWindow ( ) ;
52
53
appUpdateService . checkForUpdatesAndNotify ( {
53
54
silent : true ,
@@ -65,6 +66,7 @@ app.on("window-all-closed", function () {
65
66
} ) ;
66
67
67
68
app . on ( "activate" , function ( ) {
69
+ console . log ( "activate" , BrowserWindow . getAllWindows ( ) ) ;
68
70
// On OS X it's core to re-create a window in the app when the
69
71
// dock icon is clicked and there are no other windows open.
70
72
if ( BrowserWindow . getAllWindows ( ) . length === 0 ) createWindow ( ) ;
You can’t perform that action at this time.
0 commit comments