mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-06 08:08:10 +08:00
fix(tray): Order of operations causing exception
This commit is contained in:
parent
f66122fe2a
commit
3b421edd96
1 changed files with 1 additions and 1 deletions
|
@ -47,11 +47,11 @@ class TrayStore extends NylasStore {
|
||||||
this._platform = platform;
|
this._platform = platform;
|
||||||
|
|
||||||
this._unreadIcon = NativeImage.createFromPath(UNREAD_ICON_PATH);
|
this._unreadIcon = NativeImage.createFromPath(UNREAD_ICON_PATH);
|
||||||
|
this._unreadString = new Number(UnreadBadgeStore.count()).toLocaleString();
|
||||||
this._baseIcon = NativeImage.createFromPath(BASE_ICON_PATH);
|
this._baseIcon = NativeImage.createFromPath(BASE_ICON_PATH);
|
||||||
this._menu = _buildMenu();
|
this._menu = _buildMenu();
|
||||||
this._icon = this._getIconImg();
|
this._icon = this._getIconImg();
|
||||||
|
|
||||||
this._unreadString = new Number(UnreadBadgeStore.count()).toLocaleString();
|
|
||||||
this.listenTo(UnreadBadgeStore, this._onUnreadCountChanged);
|
this.listenTo(UnreadBadgeStore, this._onUnreadCountChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue