debt - use dialog service over bare windows service

This commit is contained in:
Benjamin Pasero
2018-03-07 14:58:07 +01:00
parent 8d0228f52b
commit 684af0064b
12 changed files with 55 additions and 61 deletions

View File

@@ -119,7 +119,7 @@ export class MainThreadMessageService implements MainThreadMessageServiceShape {
cancelId = buttons.length - 1;
}
return this._dialogService.show(severity, message, buttons, cancelId)
return this._dialogService.show(severity, message, buttons, { cancelId })
.then(result => result === commands.length ? undefined : commands[result].handle);
}
}