File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -29,15 +29,19 @@ function createWindow () {
29
29
nodeIntegration : true
30
30
} ,
31
31
icon : 'assets/solokeys-32x32.png' ,
32
- } )
32
+ show : false ,
33
+ } ) ;
34
+
35
+ win . once ( 'ready-to-show' , ( ) => {
36
+ win . show ( )
37
+
33
38
34
- // and load the index.html of the app.
35
- // win.loadFile('app/index.html')
36
- win . loadURL ( url . format ( {
37
- pathname : path . join ( __dirname , 'index.html' ) ,
38
- protocol : 'file:' ,
39
- slashes : true
40
- } ) ) ;
39
+ } ) ;
40
+ win . loadURL ( url . format ( {
41
+ pathname : path . join ( __dirname , 'index.html' ) ,
42
+ protocol : 'file:' ,
43
+ slashes : true
44
+ } ) ) ;
41
45
42
46
// Open the DevTools.
43
47
if ( isDev )
@@ -53,11 +57,6 @@ function createWindow () {
53
57
win = null
54
58
} )
55
59
56
- // win.addEventListener('contextmenu', (e) => {
57
- // e.preventDefault()
58
- // rightClickPosition = {x: e.x, y: e.y}
59
- // menu.popup(remote.getCurrentWindow())
60
- // }, false)
61
60
}
62
61
63
62
// This method will be called when Electron has finished
You can’t perform that action at this time.
0 commit comments