From 3b421edd96f6b4668af91f75e055619390989ecd Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Tue, 2 Feb 2016 12:24:59 -0800 Subject: [PATCH] fix(tray): Order of operations causing exception --- internal_packages/system-tray/lib/tray-store.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal_packages/system-tray/lib/tray-store.es6 b/internal_packages/system-tray/lib/tray-store.es6 index 23de103fa..91337cb2e 100644 --- a/internal_packages/system-tray/lib/tray-store.es6 +++ b/internal_packages/system-tray/lib/tray-store.es6 @@ -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); }