Skip to content

Commit a4a64eb

Browse files
author
Akos Kitta
committed
fix: make burn bootloader cancelable from UI
Signed-off-by: Akos Kitta <[email protected]>
1 parent 7722415 commit a4a64eb

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

arduino-ide-extension/src/browser/contributions/burn-bootloader.ts

+9-5
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,15 @@ export class BurnBootloader extends CoreServiceContribution {
3737
'arduino/bootloader/burningBootloader',
3838
'Burning bootloader...'
3939
),
40-
task: (progressId, coreService) =>
41-
coreService.burnBootloader({
42-
...options,
43-
progressId,
44-
}),
40+
task: (progressId, coreService, token) =>
41+
coreService.burnBootloader(
42+
{
43+
...options,
44+
progressId,
45+
},
46+
token
47+
),
48+
cancelable: true,
4549
});
4650
this.messageService.info(
4751
nls.localize(

0 commit comments

Comments
 (0)