WIP per-tab hoisting

This commit is contained in:
zadam
2020-11-23 22:52:48 +01:00
parent 167b6974fe
commit 52b8162d01
16 changed files with 64 additions and 74 deletions

View File

@@ -193,8 +193,8 @@ export default class TabManager extends Component {
return tabContext;
}
async openTabWithNote(notePath, activate, tabId = null, hoistedNoteId = 'root') {
const tabContext = await this.openEmptyTab(tabId);
async openTabWithNote(notePath, activate, tabId, hoistedNoteId) {
const tabContext = await this.openEmptyTab(tabId, hoistedNoteId);
if (notePath) {
await tabContext.setNote(notePath, !activate); // if activate is false then send normal noteSwitched event