Skip to content

Commit 67b4c30

Browse files
authored
Fix: Fixed issue where "Reopen closed tab" was always disabled when right-clicking on tabs (#14181)
1 parent 53e3391 commit 67b4c30

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Files.App/UserControls/TabBar/BaseTabBar.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public void CloseTab(TabBarItem tabItem)
139139
tabItem?.Unload();
140140

141141
// Dispose and save tab arguments
142-
RecentlyClosedTabs.Push(new CustomTabViewItemParameter[]
142+
PushRecentTab(new CustomTabViewItemParameter[]
143143
{
144144
tabItem.NavigationParameter,
145145
});

src/Files.App/UserControls/TabBar/TabBar.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
Text="{x:Bind Commands.CloseOtherTabsSelected.Label}" />
5151
<MenuFlyoutItem
5252
Command="{x:Bind Commands.ReopenClosedTab}"
53-
IsEnabled="{x:Bind Commands.ReopenClosedTab.IsExecutable}"
5453
KeyboardAcceleratorTextOverride="{x:Bind Commands.ReopenClosedTab.HotKeyText, Mode=OneWay}"
5554
Text="{x:Bind Commands.ReopenClosedTab.Label}" />
5655
</MenuFlyout>

0 commit comments

Comments
 (0)