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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user