Skip to content

Commit 29a81d9

Browse files
committed
Fixed: Unload history 30s after closing the sub-panel
1 parent 086b167 commit 29a81d9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/services/sidebar.actions.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2505,6 +2505,11 @@ export function openSubPanel(type: SubPanelType, hostPanel?: Panel) {
25052505

25062506
export function closeSubPanel() {
25072507
if (!Sidebar.subPanelActive) return
2508+
2509+
if (Sidebar.subPanelType === SubPanelType.History && Sidebar.activePanelId !== 'history') {
2510+
History.unloadAfter(30_000)
2511+
}
2512+
25082513
Sidebar.subPanelActive = false
25092514
Sidebar.subPanelType = SubPanelType.Null
25102515
Sidebar.reactive.subPanelActive = false

0 commit comments

Comments
 (0)