Skip to content

Commit 9a267d6

Browse files
committed
Update CompressIntoArchiveAction.cs
1 parent 1a0103b commit 9a267d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Files.App/Actions/Content/Archives/Compress/CompressIntoArchiveAction.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
using Files.App.Dialogs;
55
using Microsoft.UI.Xaml.Controls;
6+
using Windows.Foundation.Metadata;
67

78
namespace Files.App.Actions
89
{
@@ -30,6 +31,9 @@ public override async Task ExecuteAsync()
3031
FileName = fileName,
3132
};
3233

34+
if (ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 8))
35+
dialog.XamlRoot = MainWindow.Instance.Content.XamlRoot;
36+
3337
var result = await dialog.TryShowAsync();
3438

3539
if (!dialog.CanCreate || result != ContentDialogResult.Primary)

0 commit comments

Comments
 (0)