Skip to content

Commit 78afa75

Browse files
committed
Addressed review feedback.
Signed-off-by: ubi de feo <me@ubidefeo.com>
1 parent 03cc893 commit 78afa75

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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
})

ui/arduino/store.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy