Skip to content

Commit 1a0103b

Browse files
committed
Update DecompressHelper.cs
1 parent 55afbbc commit 1a0103b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Files.App/Utils/Archives/DecompressHelper.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using SevenZip;
99
using System.IO;
1010
using System.Text;
11+
using Windows.Foundation.Metadata;
1112
using Windows.Storage;
1213

1314
namespace Files.App.Utils.Archives
@@ -145,6 +146,9 @@ public static async Task DecompressArchiveAsync(IShellPage associatedInstance)
145146
};
146147
decompressArchiveDialog.ViewModel = decompressArchiveViewModel;
147148

149+
if (ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 8))
150+
decompressArchiveDialog.XamlRoot = MainWindow.Instance.Content.XamlRoot;
151+
148152
ContentDialogResult option = await decompressArchiveDialog.TryShowAsync();
149153
if (option != ContentDialogResult.Primary)
150154
return;

0 commit comments

Comments
 (0)