diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js index 70e6abf87..b2f10322d 100644 --- a/js/ui/status/keyboard.js +++ b/js/ui/status/keyboard.js @@ -529,6 +529,7 @@ var InputSourceManager = new Lang.Class({ let sources = this._settings.inputSources; let nSources = sources.length; + this._currentSource = null; this._inputSources = {}; this._ibusSources = {}; @@ -827,6 +828,9 @@ var InputSourceIndicator = new Lang.Class({ for (let i in this._indicatorLabels) this._indicatorLabels[i].destroy(); + this._menuItems = {}; + this._indicatorLabels = {}; + let menuIndex = 0; for (let i in this._inputSourceManager.inputSources) { let is = this._inputSourceManager.inputSources[i];