From da38e274c7ed2a65c5cbcb019e023f5043a47cf3 Mon Sep 17 00:00:00 2001 From: telamonian Date: Sun, 21 Jul 2019 18:39:55 -0400 Subject: [PATCH] async bugfix --- packages/statusbar/src/defaults/kernelStatus.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/statusbar/src/defaults/kernelStatus.tsx b/packages/statusbar/src/defaults/kernelStatus.tsx index 503fd27d8eac..23a6f0f59b80 100644 --- a/packages/statusbar/src/defaults/kernelStatus.tsx +++ b/packages/statusbar/src/defaults/kernelStatus.tsx @@ -185,13 +185,13 @@ export namespace KernelStatus { // sync setting of status and display name this._kernelStatus = newValue.status; this._kernelName = spec.display_name; + this._triggerChange(oldState, this._getAllState()); }); } else { this._kernelStatus = 'unknown'; this._kernelName = 'unknown'; + this._triggerChange(oldState, this._getAllState()); } - - this._triggerChange(oldState, this._getAllState()); }; private _getAllState(): [string, string, string] {