Commit 23264791 authored by yann300's avatar yann300

force show Home when appManager ensure its activation

parent 4fd502df
...@@ -69,6 +69,14 @@ export class TabProxy { ...@@ -69,6 +69,14 @@ export class TabProxy {
appManager.event.on('deactivate', (name) => { appManager.event.on('deactivate', (name) => {
this.removeTab(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) { switchTab (tabName) {
......
...@@ -6,7 +6,7 @@ import { PermissionHandler } from './app/ui/persmission-handler' ...@@ -6,7 +6,7 @@ import { PermissionHandler } from './app/ui/persmission-handler'
const requiredModules = [ // services + layout views + system views const requiredModules = [ // services + layout views + system views
'compilerArtefacts', 'compilerMetadata', 'contextualListener', 'sourceHighlighters', 'offsetToLineColumnConverter', 'network', 'theme', 'fileManager', 'contentImport', 'compilerArtefacts', 'compilerMetadata', 'contextualListener', 'sourceHighlighters', 'offsetToLineColumnConverter', 'network', 'theme', 'fileManager', 'contentImport',
'mainPanel', 'hiddenPanel', 'sidePanel', 'menuicons', 'fileExplorers', 'mainPanel', 'hiddenPanel', 'sidePanel', 'menuicons', 'fileExplorers',
'terminal', 'home', 'settings', 'pluginManager'] 'terminal', 'settings', 'pluginManager']
export class RemixAppManager extends PluginEngine { export class RemixAppManager extends PluginEngine {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment