Skip to content

Commit a019c99

Browse files
committed
Only save if openFile (tab) has changes.
Signed-off-by: ubi de feo <[email protected]>
1 parent 530dbc6 commit a019c99

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/arduino/store.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,6 +1599,7 @@ function pickRandom(array) {
15991599
function canSave({ view, isConnected, openFiles, editingFile }) {
16001600
const isEditor = view === 'editor'
16011601
const file = openFiles.find(f => f.id === editingFile)
1602+
if (!file.hasChanges) return false
16021603
// Can only save on editor
16031604
if (!isEditor) return false
16041605
// Can always save disk files

0 commit comments

Comments
 (0)