force show Home when appManager ensure its activation

pull/1/head
yann300 5 years ago
parent 4fd502dfac
commit 2326479110
  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