fix(tray): Order of operations causing exception

This commit is contained in:
Ben Gotow 2016-02-02 12:24:59 -08:00
parent f66122fe2a
commit 3b421edd96

View file

@ -47,11 +47,11 @@ class TrayStore extends NylasStore {
this._platform = platform;
this._unreadIcon = NativeImage.createFromPath(UNREAD_ICON_PATH);
this._unreadString = new Number(UnreadBadgeStore.count()).toLocaleString();
this._baseIcon = NativeImage.createFromPath(BASE_ICON_PATH);
this._menu = _buildMenu();
this._icon = this._getIconImg();
this._unreadString = new Number(UnreadBadgeStore.count()).toLocaleString();
this.listenTo(UnreadBadgeStore, this._onUnreadCountChanged);
}