mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-18 12:54:25 +01:00
Disallow opening Serial monitor during compilation
Commit 6d5597b070c7bedce15047c7c560249965cc0bfc introduced a guard against multiple concurrent operations. This guard also avoid any real serial monitor "open" during the compile+upload phase, but it didn't handle keyboard shortcuts. Fixes https://github.com/arduino/Arduino/issues/6015
This commit is contained in:
parent
58422f71a0
commit
c0a99f9ec9
@ -2168,6 +2168,8 @@ public class Editor extends JFrame implements RunnerListener {
|
||||
console.clear();
|
||||
status.progress(tr("Uploading to I/O Board..."));
|
||||
|
||||
avoidMultipleOperations = true;
|
||||
|
||||
new Thread(timeoutUploadHandler).start();
|
||||
new Thread(usingProgrammer ? exportAppHandler : exportHandler).start();
|
||||
}
|
||||
|
@ -376,7 +376,6 @@ public class EditorToolbar extends JComponent implements MouseInputListener, Key
|
||||
// launch a timeout timer which can reenable to upload button functionality an
|
||||
if (!editor.avoidMultipleOperations) {
|
||||
editor.handleExport(e.isShiftDown());
|
||||
editor.avoidMultipleOperations = true;
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user