Skip to content

Commit

Permalink
force show Home when appManager ensure its activation
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Jul 16, 2019
1 parent 4fd502d commit 2326479
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/app/panels/tab-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/remixAppManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down

0 comments on commit 2326479

Please sign in to comment.