mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
reduce unnecessary tab activation events
This commit is contained in:
@@ -314,6 +314,10 @@ class AppContext {
|
||||
}
|
||||
|
||||
activateTab(tabId) {
|
||||
if (tabId === this.activeTabId) {
|
||||
return;
|
||||
}
|
||||
|
||||
const oldActiveTabId = this.activeTabId;
|
||||
|
||||
this.activeTabId = tabId;
|
||||
|
||||
Reference in New Issue
Block a user