force show Home when appManager ensure its activation

pull/3094/head
yann300 5 years ago
parent f62431a9c2
commit 41d45f8e08
  1. 8
      src/app/panels/tab-proxy.js
  2. 2
      src/remixAppManager.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) {

@ -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 {

Loading…
Cancel
Save