We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55afbbc commit 1a0103bCopy full SHA for 1a0103b
src/Files.App/Utils/Archives/DecompressHelper.cs
@@ -8,6 +8,7 @@
8
using SevenZip;
9
using System.IO;
10
using System.Text;
11
+using Windows.Foundation.Metadata;
12
using Windows.Storage;
13
14
namespace Files.App.Utils.Archives
@@ -145,6 +146,9 @@ public static async Task DecompressArchiveAsync(IShellPage associatedInstance)
145
146
};
147
decompressArchiveDialog.ViewModel = decompressArchiveViewModel;
148
149
+ if (ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 8))
150
+ decompressArchiveDialog.XamlRoot = MainWindow.Instance.Content.XamlRoot;
151
+
152
ContentDialogResult option = await decompressArchiveDialog.TryShowAsync();
153
if (option != ContentDialogResult.Primary)
154
return;
0 commit comments