Skip to content

Commit

Permalink
sync global collapse state
Browse files Browse the repository at this point in the history
  • Loading branch information
oxdc committed Dec 17, 2024
1 parent e1f59de commit 11df856
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/models/ViewState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ export const useViewState = create<ViewState>()((set, get) => ({
collapsedGroups: state.collapsedGroups.filter(
(gid) => gid !== id
),
globalCollapseState: false,
}));
}
saveCollapsedGroups(get().collapsedGroups);
Expand Down Expand Up @@ -443,6 +444,7 @@ export const useViewState = create<ViewState>()((set, get) => ({
if (isSidebar) return;
if (!group.id) return;
get().toggleCollapsedGroup(group.id, false);
set({ globalCollapseState: false });
},
executeSmartNavigation(
app: App,
Expand Down

0 comments on commit 11df856

Please sign in to comment.