Skip to content

Commit cf9f21e

Browse files
committed
Prevent "code change" flag to be set when interface is blocked
1 parent 2d1ec1e commit cf9f21e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/arduino/store.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,9 @@ function store(state, emitter) {
390390

391391
emitter.on('code-change', () => {
392392
log('code-changed')
393-
state.unsavedChanges = true
393+
if (!state.blocking) {
394+
state.unsavedChanges = true
395+
}
394396
})
395397

396398
// PANEL MANAGEMENT

0 commit comments

Comments
 (0)