diff --git a/plugins/c9.ide.editors/tabmanager.js b/plugins/c9.ide.editors/tabmanager.js index da270a71..61b4462f 100644 --- a/plugins/c9.ide.editors/tabmanager.js +++ b/plugins/c9.ide.editors/tabmanager.js @@ -220,13 +220,14 @@ define(function(require, module, exports) { } setTimeout(function() { - // Only set the state if we're not testing something else - if (options.testing != 2 && !isReady) { + var wasReady = isReady; + isReady = true; + if (options.testing != 2 && !wasReady) { + // Only fire if we're not testing something else setState(state, !isReady, function(){ emit.sticky("ready"); }); } - isReady = true; showTabs = settings.getBool("user/tabs/@show"); toggleButtons(showTabs);