Merge hide-to-tray-icon with show-tray-icon
This commit is contained in:
parent
4b0fa940bb
commit
9820e59559
2 changed files with 8 additions and 29 deletions
|
@ -211,23 +211,11 @@ export default class ElectronPlatform extends VectorBasePlatform {
|
|||
return this._ipcCall('setAutoHideMenuBarEnabled', enabled);
|
||||
}
|
||||
|
||||
supportsTrayIcon(): boolean {
|
||||
supportsMinimizeToTray(): boolean {
|
||||
// Things other than Mac support tray icons
|
||||
return !navigator.platform.toUpperCase().includes('MAC');
|
||||
}
|
||||
|
||||
async getTrayIconEnabled(): boolean {
|
||||
return this._ipcCall('getTrayIconEnabled');
|
||||
}
|
||||
|
||||
async setTrayIconEnabled(enabled: boolean): void {
|
||||
return this._ipcCall('setTrayIconEnabled', enabled);
|
||||
}
|
||||
|
||||
supportsMinimizeToTray(): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
async getMinimizeToTrayEnabled(): boolean {
|
||||
return this._ipcCall('getMinimizeToTrayEnabled');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue