Improve pane: reopen closed item to not reopen closed tabs (#42568)

Closes #42134

Release Notes:

- Improved `pane: reopen closed item` to not reopen closed tabs.
This commit is contained in:
Andrew Farkas
2025-11-12 21:08:41 +00:00
committed by GitHub
parent 8fd8b989a6
commit 0c1ca2a45a
+1
View File
@@ -4116,6 +4116,7 @@ impl NavHistory {
is_preview,
});
}
NavigationMode::ClosingItem if is_preview => return,
NavigationMode::ClosingItem => {
if state.closed_stack.len() >= MAX_NAVIGATION_HISTORY_LEN {
state.closed_stack.pop_front();