mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-27 09:36:28 +08:00
fix(tray): Fix accidental conversion to NaN
This commit is contained in:
parent
3e8ce3d2ff
commit
50bd559623
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ class TrayStore extends NylasStore {
|
|||
this._platform = platform;
|
||||
|
||||
this._unreadIcon = NativeImage.createFromPath(UNREAD_ICON_PATH);
|
||||
this._unreadString = +(UnreadBadgeStore.count()).toLocaleString();
|
||||
this._unreadString = (+UnreadBadgeStore.count()).toLocaleString();
|
||||
this._baseIcon = NativeImage.createFromPath(BASE_ICON_PATH);
|
||||
this._menu = _buildMenu();
|
||||
this._icon = this._getIconImg();
|
||||
|
@ -91,7 +91,7 @@ class TrayStore extends NylasStore {
|
|||
}
|
||||
|
||||
_onUnreadCountChanged() {
|
||||
this._unreadString = +(UnreadBadgeStore.count()).toLocaleString();
|
||||
this._unreadString = (+UnreadBadgeStore.count()).toLocaleString();
|
||||
this._icon = this._getIconImg();
|
||||
this.trigger();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue