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