File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -65,11 +65,9 @@ app.on('ready', () => {
6565 createWindow ( )
6666
6767 win . on ( 'focus' , ( ) => {
68- // console.log("win focus")
6968 } )
7069
7170 win . on ( 'blur' , ( ) => {
72- // console.log("win blur")
7371 } )
7472
7573} )
Original file line number Diff line number Diff line change @@ -160,7 +160,6 @@ async function store(state, emitter) {
160160 cancelId : 0 ,
161161 message : "Could not connect to the board. Reset it and try again."
162162 } )
163- // console.log('Reset request acknowledged', response)
164163 emitter . emit ( 'connection-timeout' )
165164 } , 3500 )
166165 try {
@@ -1196,7 +1195,6 @@ async function store(state, emitter) {
11961195 && f . source == selectedFile . source
11971196 && f . parentFolder == selectedFile . parentFolder
11981197 } )
1199- // console.log('already open', alreadyOpen)
12001198
12011199 if ( ! alreadyOpen ) {
12021200 // This file is not open yet,
@@ -1628,8 +1626,10 @@ async function store(state, emitter) {
16281626 }
16291627 const tabExists = state . openFiles . find ( f => f . parentFolder === newFile . parentFolder && f . fileName === newFile . fileName && f . source === newFile . source )
16301628 if ( tabExists || fullPathExists ) {
1631- const confirmation = confirmDialog ( `File ${ newFile . fileName } already exists on ${ source } . Please choose another name.` , 'OK' )
1632- return false
1629+ const confirmation = await confirmDialog ( `File ${ newFile . fileName } already exists on ${ source } . Please choose another name.` , 'OK' )
1630+ if ( ! confirmation ) {
1631+ return false
1632+ }
16331633 }
16341634 // LEAK > listeners keep getting added and not removed when tabs are closed
16351635 // additionally I found that closing a tab has actually added an extra listener
You can’t perform that action at this time.
0 commit comments