Add user settings for warn before exit
parent
57d5206592
commit
1d79f97a7a
|
@ -399,6 +399,18 @@ export default class ElectronPlatform extends VectorBasePlatform {
|
||||||
return this._ipcCall('setAutoLaunchEnabled', enabled);
|
return this._ipcCall('setAutoLaunchEnabled', enabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
supportsWarnBeforeExit(): boolean {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
async shouldWarnBeforeExit(): Promise<boolean> {
|
||||||
|
return this._ipcCall('shouldWarnBeforeExit');
|
||||||
|
}
|
||||||
|
|
||||||
|
async setWarnBeforeExit(enabled: boolean): Promise<void> {
|
||||||
|
return this._ipcCall('setWarnBeforeExit', enabled);
|
||||||
|
}
|
||||||
|
|
||||||
supportsAutoHideMenuBar(): boolean {
|
supportsAutoHideMenuBar(): boolean {
|
||||||
// This is irelevant on Mac as Menu bars don't live in the app window
|
// This is irelevant on Mac as Menu bars don't live in the app window
|
||||||
return !isMac;
|
return !isMac;
|
||||||
|
|
Loading…
Reference in New Issue