mirror of
https://github.com/zadam/trilium.git
synced 2025-12-22 16:20:08 +01:00
Only expand/collapse the left pane of the focused window.
This commit is contained in:
@@ -17,7 +17,7 @@ export default class LeftPaneContainer extends FlexContainer<Component> {
|
||||
}
|
||||
|
||||
entitiesReloadedEvent({ loadResults }: EventData<"entitiesReloaded">) {
|
||||
if (loadResults.isOptionReloaded("leftPaneVisible")) {
|
||||
if (loadResults.isOptionReloaded("leftPaneVisible") && document.hasFocus()) {
|
||||
const visible = this.isEnabled();
|
||||
this.toggleInt(visible);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user