We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b05f397 commit 954f9cfCopy full SHA for 954f9cf
ui/arduino/store.js
@@ -1324,7 +1324,7 @@ async function store(state, emitter) {
1324
})
1325
1326
win.beforeClose(async () => {
1327
- const hasChanges = !!state.openFiles.find(f => f.parentFolder && f.hasChanges)
+ const hasChanges = !!state.openFiles.find(f => f.hasChanges)
1328
if (hasChanges) {
1329
const response = await confirm('You may have unsaved changes. Are you sure you want to proceed?', 'Yes', 'Cancel')
1330
if (!response) return false
0 commit comments