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 1a0103b commit 9a267d6Copy full SHA for 9a267d6
src/Files.App/Actions/Content/Archives/Compress/CompressIntoArchiveAction.cs
@@ -3,6 +3,7 @@
3
4
using Files.App.Dialogs;
5
using Microsoft.UI.Xaml.Controls;
6
+using Windows.Foundation.Metadata;
7
8
namespace Files.App.Actions
9
{
@@ -30,6 +31,9 @@ public override async Task ExecuteAsync()
30
31
FileName = fileName,
32
};
33
34
+ if (ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 8))
35
+ dialog.XamlRoot = MainWindow.Instance.Content.XamlRoot;
36
+
37
var result = await dialog.TryShowAsync();
38
39
if (!dialog.CanCreate || result != ContentDialogResult.Primary)
0 commit comments