Skip to content

Commit f06384b

Browse files
committed
Note about selectedFiles cleanup
1 parent 9c63371 commit f06384b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/arduino2/store.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,9 @@ async function store(state, emitter) {
567567
return f.fileName === file.fileName && f.source === source
568568
})
569569
if (!event.ctrlKey && !event.metaKey) {
570+
// state.selectedBoardFiles and state.selectedDiskFiles are newly
571+
// created at the end of the toggle state, hence here we remove the
572+
// files from the section currently being clicked on
570573
state.selectedFiles = deselectFilesFromSource(source, state.selectedFiles)
571574
}
572575

0 commit comments

Comments
 (0)