mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-28 11:24:11 +08:00
Scale down linux tray icon, try to stop it from flashing on Ubuntu #232
This commit is contained in:
parent
95f10323ee
commit
7743c5f703
5 changed files with 7 additions and 10 deletions
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
Before Width: | Height: | Size: 752 B |
Binary file not shown.
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Binary file not shown.
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
@ -83,16 +83,13 @@ class SystemTrayManager {
|
|||
};
|
||||
|
||||
updateTraySettings(iconPath, unreadString, isTemplateImg) {
|
||||
if (this._iconPath === iconPath && this._unreadString === unreadString) return;
|
||||
|
||||
this._iconPath = iconPath;
|
||||
this._unreadString = unreadString;
|
||||
|
||||
if (this._tray) {
|
||||
const icon = _getIcon(this._iconPath, isTemplateImg);
|
||||
const tooltip = _getTooltip(unreadString);
|
||||
this._tray.setImage(icon);
|
||||
this._tray.setToolTip(tooltip);
|
||||
if (this._iconPath !== iconPath) {
|
||||
this._iconPath = iconPath;
|
||||
if (this._tray) this._tray.setImage(_getIcon(this._iconPath, isTemplateImg));
|
||||
}
|
||||
if (this._unreadString !== unreadString) {
|
||||
this._unreadString = unreadString;
|
||||
if (this._tray) this._tray.setToolTip(_getTooltip(unreadString));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue