state is now applied to sidebar widgets

This commit is contained in:
zadam
2019-08-16 21:29:44 +02:00
parent aa981d3cd4
commit f259c60b54
11 changed files with 38 additions and 38 deletions

View File

@@ -133,7 +133,6 @@ async function switchToTab(tabId, notePath) {
if (!tabContext) {
await loadNoteDetail(notePath, {
newTab: true,
tabId: tabId,
activate: true
});
} else {
@@ -262,7 +261,7 @@ async function loadNoteDetail(origNotePath, options = {}) {
if (!getActiveTabContext() || newTab) {
// if it's a new tab explicitly by user then it's in background
ctx = new TabContext(tabRow, options.tabId);
ctx = new TabContext(tabRow, options.state);
tabContexts.push(ctx);
}
else {