Add ability to hide tray icon on non-Mac (which has no tray icon)

This commit is contained in:
Michael Telatynski
2019-10-29 11:37:41 +00:00
parent 814917d9ed
commit cd37ffcef2
2 changed files with 40 additions and 4 deletions
+12
View File
@@ -140,6 +140,18 @@ export default class BasePlatform {
throw new Error("Unimplemented");
}
supportsTrayIcon(): boolean {
return false;
}
async getTrayIconEnabled(): boolean {
return false;
}
async setTrayIconEnabled(enabled: boolean): void {
throw new Error("Unimplemented");
}
supportsMinimizeToTray(): boolean {
return false;
}