File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -65,11 +65,9 @@ app.on('ready', () => {
65
65
createWindow ( )
66
66
67
67
win . on ( 'focus' , ( ) => {
68
- // console.log("win focus")
69
68
} )
70
69
71
70
win . on ( 'blur' , ( ) => {
72
- // console.log("win blur")
73
71
} )
74
72
75
73
} )
Original file line number Diff line number Diff line change @@ -160,7 +160,6 @@ async function store(state, emitter) {
160
160
cancelId : 0 ,
161
161
message : "Could not connect to the board. Reset it and try again."
162
162
} )
163
- // console.log('Reset request acknowledged', response)
164
163
emitter . emit ( 'connection-timeout' )
165
164
} , 3500 )
166
165
try {
@@ -1196,7 +1195,6 @@ async function store(state, emitter) {
1196
1195
&& f . source == selectedFile . source
1197
1196
&& f . parentFolder == selectedFile . parentFolder
1198
1197
} )
1199
- // console.log('already open', alreadyOpen)
1200
1198
1201
1199
if ( ! alreadyOpen ) {
1202
1200
// This file is not open yet,
@@ -1628,8 +1626,10 @@ async function store(state, emitter) {
1628
1626
}
1629
1627
const tabExists = state . openFiles . find ( f => f . parentFolder === newFile . parentFolder && f . fileName === newFile . fileName && f . source === newFile . source )
1630
1628
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
+ }
1633
1633
}
1634
1634
// LEAK > listeners keep getting added and not removed when tabs are closed
1635
1635
// 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