mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-09 18:38:33 +00:00
refined open logic when sketch name is invalid
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
@@ -18,9 +18,9 @@ export class WorkspaceDeleteHandler extends TheiaWorkspaceDeleteHandler {
|
||||
// Deleting the main sketch file.
|
||||
if (uris.map(uri => uri.toString()).some(uri => uri === sketch.mainFileUri)) {
|
||||
const { response } = await remote.dialog.showMessageBox({
|
||||
title: 'Delete',
|
||||
type: 'question',
|
||||
buttons: ['Cancel', 'OK'],
|
||||
title: 'Delete',
|
||||
message: 'Do you want to delete the current sketch?'
|
||||
});
|
||||
if (response === 1) { // OK
|
||||
|
||||
Reference in New Issue
Block a user