Add user settings for warn before exit

This commit is contained in:
Germain Souquet 2021-03-25 14:14:38 +00:00
parent 760b11f214
commit 25a47b463e
3 changed files with 36 additions and 0 deletions

View file

@ -212,6 +212,18 @@ export default abstract class BasePlatform {
throw new Error("Unimplemented");
}
supportsWarnBeforeExit(): boolean {
return false;
}
async shouldWarnBeforeExit(): Promise<boolean> {
return false;
}
async setWarnBeforeExit(enabled: boolean): Promise<void> {
throw new Error("Unimplemented");
}
supportsAutoHideMenuBar(): boolean {
return false;
}