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
commit eab6ffe7db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 {