activation of home tab on setting->home

pull/1/head
LianaHus 6 years ago
parent f1d5f8224e
commit 7cb3f96c77
  1. 8
      src/app/panels/editor-panel.js
  2. 4
      src/app/panels/tab-proxy.js

@ -55,8 +55,14 @@ class EditorPanel {
self._view.editor.style.display = 'none'
self._components.contextView.hide()
self._view.mainPanel.style.display = 'block'
self.tabProxy.sh
}
self.appManager.event.on('ensureActivated', (name) => { if (name === 'home') { showApp(name) } })
self.appManager.event.on('ensureActivated', (name) => {
if (name === 'home') {
showApp(name)
self.tabProxy.showTab('home')
}
})
/*
We listen here on event from the tab component to display / hide the editor and mainpanel
depending on the content that should be displayed

@ -100,6 +100,10 @@ export class TabProxy {
}
}
showTab(name) {
this._view.filetabs.activateTab(name)
}
addTab (name, switchTo, close, kind) {
var slash = name.split('/')
let title = name.indexOf('/') !== -1 ? slash[slash.length - 1] : name

Loading…
Cancel
Save