mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
refactored tab activation
This commit is contained in:
@@ -35,6 +35,14 @@ export default class TabCachingWidget extends TabAwareWidget {
|
||||
return false; // stop propagation to children
|
||||
}
|
||||
|
||||
tabRemovedListener({tabId}) {
|
||||
const widget = this.widgets[tabId];
|
||||
|
||||
if (widget) {
|
||||
widget.remove();
|
||||
}
|
||||
}
|
||||
|
||||
toggle(show) {
|
||||
for (const tabId in this.widgets) {
|
||||
this.widgets[tabId].toggle(show && this.tabContext && tabId === this.tabContext.tabId);
|
||||
|
||||
Reference in New Issue
Block a user