Merge pull request #11258 from vector-im/t3chguy/hide_tray_icon

Add ability to hide tray icon on non-Mac (which has no tray icon)
This commit is contained in:
Michael Telatynski
2019-10-30 16:31:47 +00:00
committed by GitHub
3 changed files with 27 additions and 18 deletions

View File

@@ -212,7 +212,8 @@ export default class ElectronPlatform extends VectorBasePlatform {
}
supportsMinimizeToTray(): boolean {
return true;
// Things other than Mac support tray icons
return !navigator.platform.toUpperCase().includes('MAC');
}
async getMinimizeToTrayEnabled(): boolean {