File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
arduino-ide-extension/src/browser/contributions Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,11 @@ export class UploadSketch extends SketchContribution {
7676
7777 async uploadSketch ( usingProgrammer : boolean = false ) : Promise < void > {
7878
79+ // even with buttons disabled, better to double check if an upload is already in progress
80+ if ( this . uploadInProgress ) {
81+ return ;
82+ }
83+
7984 // toggle the toolbar button and menu item state.
8085 // uploadInProgress will be set to false whether the upload fails or not
8186 this . uploadInProgress = true ;
Original file line number Diff line number Diff line change @@ -72,6 +72,11 @@ export class VerifySketch extends SketchContribution {
7272
7373 async verifySketch ( exportBinaries ?: boolean ) : Promise < void > {
7474
75+ // even with buttons disabled, better to double check if a verify is already in progress
76+ if ( this . verifyInProgress ) {
77+ return ;
78+ }
79+
7580 // toggle the toolbar button and menu item state.
7681 // verifyInProgress will be set to false whether the compilation fails or not
7782 this . verifyInProgress = true ;
You can’t perform that action at this time.
0 commit comments