Skip to content

Commit 7546b2f

Browse files
committed
Fix Navigation Buttons
1 parent 353eed7 commit 7546b2f

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

Files/Filesystem/ItemViewModel.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,10 @@ public async void RapidAddItemsToCollectionAsync(string path)
578578
Universal.path = App.AppSettings.OneDrivePath;
579579
break;
580580
}
581+
582+
App.CurrentInstance.CanGoBack = App.CurrentInstance.ContentFrame.CanGoBack;
583+
App.CurrentInstance.CanGoForward = App.CurrentInstance.ContentFrame.CanGoForward;
584+
581585
ObservableCollection<PartialStorageItem> partialFiles = null;
582586
ObservableCollection<PartialStorageItem> partialFolders = null;
583587
var fetchOperation = Task.Run(async () =>

Files/GenericFileBrowser.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
xmlns:local="using:Files"
1010
xmlns:local2="using:Files.Filesystem"
1111
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
12-
mc:Ignorable="d" NavigationCacheMode="Required" PointerReleased="GenericItemView_PointerReleased" Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
12+
mc:Ignorable="d" NavigationCacheMode="Required" PointerReleased="GenericItemView_PointerReleased" Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
1313
<local:BaseLayout.Resources>
1414
<MenuFlyout x:Key="BaseLayoutContextFlyout">
1515
<MenuFlyoutSubItem Text="Sort by" x:Name="SortByEmptySpace">

Files/ProHome.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
1414
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
1515
x:Name="ProHomeInstance"
16+
NavigationCacheMode="Disabled"
1617
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
1718
Loaded="Page_Loaded"
1819
mc:Ignorable="d">

Files/ProHome.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ public ProHome()
132132
}
133133

134134
App.CurrentInstance = this as IShellPage;
135+
App.CurrentInstance.CanGoBack = false;
136+
App.CurrentInstance.CanGoForward = false;
135137
}
136138

137139
private async void DisplayFilesystemConsentDialog()

0 commit comments

Comments
 (0)