8000 Amended return false on duplicate tab alert. · arduino/lab-micropython-editor@110193a · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 110193a

Browse files
committed
Amended return false on duplicate tab alert.
Signed-off-by: ubi de feo <me@ubidefeo.com>
1 parent 78afa75 commit 110193a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ui/arduino/store.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,9 +1627,7 @@ async function store(state, emitter) {
16271627
const tabExists = state.openFiles.find(f => f.parentFolder === newFile.parentFolder && f.fileName === newFile.fileName && f.source === newFile.source)
16281628
if (tabExists || fullPathExists) {
16291629
const confirmation = await confirmDialog(`File ${newFile.fileName} already exists on ${source}. Please choose another name.`, 'OK')
1630-
if (!confirmation) {
1631-
return false
1632-
}
1630+
return false
16331631
}
16341632
// LEAK > listeners keep getting added and not removed when tabs are closed
16351633
// additionally I found that closing a tab has actually added an extra listener

0 commit comments

Comments
 (0)
0