Unverified Commit b0f2b5f4 authored by Liana Husikyan's avatar Liana Husikyan Committed by GitHub

Merge pull request #2193 from ethereum/fixClickOnHome

Force show Home when appManager ensure its activation
parents 2334d98c 23264791
......@@ -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 {
......
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