Skip to content

Commit 1f08c8e

Browse files
committed
Prevent Instability After Clicking on PathBar Items
1 parent 88062a3 commit 1f08c8e

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

Files UWP/Filesystem/ItemViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ private void Universal_PropertyChanged(object sender, System.ComponentModel.Prop
168168

169169
private void Item_Tapped(object sender, Windows.UI.Xaml.Input.TappedRoutedEventArgs e)
170170
{
171+
CancelLoadAndClearFiles();
171172
var itemTappedTag = (sender as Microsoft.UI.Xaml.Controls.TabViewItem).Tag.ToString();
172173
ItemViewModel<ProHome>.GetCurrentSelectedTabInstance<ProHome>().accessibleContentFrame.Navigate(typeof(GenericFileBrowser), itemTappedTag, new SuppressNavigationTransitionInfo());
173174
}

Files UWP/PhotoAlbum.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ protected override void OnNavigatedTo(NavigationEventArgs eventArgs)
8181
SidebarPinItem.Click += instanceInteraction.PinItem_Click;
8282

8383
TextState.isVisible = Visibility.Collapsed;
84-
84+
instanceViewModel.CancelLoadAndClearFiles();
85+
8586
instanceViewModel.AddItemsToCollectionAsync(parameters, this);
8687
FileList.DoubleTapped += instanceInteraction.List_ItemClick;
8788

FilesUwp.Package/FilesUwp.Package.wapproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,28 +58,28 @@
5858
<AppxBundlePlatforms>x86|x64|arm|arm64</AppxBundlePlatforms>
5959
</PropertyGroup>
6060
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
61-
<AppxBundle>Never</AppxBundle>
61+
<AppxBundle>Always</AppxBundle>
6262
</PropertyGroup>
6363
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
64-
<AppxBundle>Never</AppxBundle>
64+
<AppxBundle>Always</AppxBundle>
6565
</PropertyGroup>
6666
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
67-
<AppxBundle>Never</AppxBundle>
67+
<AppxBundle>Always</AppxBundle>
6868
</PropertyGroup>
6969
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
70-
<AppxBundle>Never</AppxBundle>
70+
<AppxBundle>Always</AppxBundle>
7171
</PropertyGroup>
7272
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
73-
<AppxBundle>Never</AppxBundle>
73+
<AppxBundle>Always</AppxBundle>
7474
</PropertyGroup>
7575
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
76-
<AppxBundle>Never</AppxBundle>
76+
<AppxBundle>Always</AppxBundle>
7777
</PropertyGroup>
7878
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
79-
<AppxBundle>Never</AppxBundle>
79+
<AppxBundle>Always</AppxBundle>
8080
</PropertyGroup>
8181
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
82-
<AppxBundle>Never</AppxBundle>
82+
<AppxBundle>Always</AppxBundle>
8383
</PropertyGroup>
8484
<ItemGroup>
8585
<AppxManifest Include="Package.appxmanifest">

FilesUwp.Package/Package.appxmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" xmlns:desktop4="http://schemas.microsoft.com/appx/manifest/desktop/windows10/4" xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10" IgnorableNamespaces="uap mp rescap desktop4 desktop">
3-
<Identity Name="49306atecsolution.FilesUWP" Publisher="CN=53EC4384-7F5B-4CF6-8C23-513FFE9D1AB7" Version="0.6.0.0" />
3+
<Identity Name="49306atecsolution.FilesUWP" Publisher="CN=53EC4384-7F5B-4CF6-8C23-513FFE9D1AB7" Version="0.6.2.0" />
44
<Properties>
55
<DisplayName>Files UWP</DisplayName>
66
<PublisherDisplayName>Yair A</PublisherDisplayName>

0 commit comments

Comments
 (0)