diff --git a/src/app/panels/tab-proxy.js b/src/app/panels/tab-proxy.js index 67c3dd3781..ff9e55599d 100644 --- a/src/app/panels/tab-proxy.js +++ b/src/app/panels/tab-proxy.js @@ -69,6 +69,14 @@ export class TabProxy { appManager.event.on('deactivate', (name) => { this.removeTab(name) }) + + appManager.event.on('ensureActivated', (name) => { + if (name === 'home') { + // if someone force activation of home, we switch to it + this.event.emit('switchApp', name) + this._view.filetabs.activateTab(name) + } + }) } switchTab (tabName) { diff --git a/src/remixAppManager.js b/src/remixAppManager.js index bf51fa482b..cf5e739c5f 100644 --- a/src/remixAppManager.js +++ b/src/remixAppManager.js @@ -6,7 +6,7 @@ import { PermissionHandler } from './app/ui/persmission-handler' const requiredModules = [ // services + layout views + system views 'compilerArtefacts', 'compilerMetadata', 'contextualListener', 'sourceHighlighters', 'offsetToLineColumnConverter', 'network', 'theme', 'fileManager', 'contentImport', 'mainPanel', 'hiddenPanel', 'sidePanel', 'menuicons', 'fileExplorers', - 'terminal', 'home', 'settings', 'pluginManager'] + 'terminal', 'settings', 'pluginManager'] export class RemixAppManager extends PluginEngine {