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 9a267d6 commit 19207d0Copy full SHA for 19207d0
src/Files.App/Services/UpdateService.cs
@@ -6,6 +6,7 @@
6
using Microsoft.UI.Xaml.Controls;
7
using System.IO;
8
using System.Net.Http;
9
+using Windows.Foundation.Metadata;
10
using Windows.Services.Store;
11
using Windows.Storage;
12
using WinRT.Interop;
@@ -146,6 +147,9 @@ private static async Task<bool> ShowDialogAsync()
146
147
PrimaryButtonText = "ConsentDialogPrimaryButtonText".GetLocalizedResource()
148
};
149
150
+ if (ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 8))
151
+ dialog.XamlRoot = MainWindow.Instance.Content.XamlRoot;
152
+
153
ContentDialogResult result = await dialog.TryShowAsync();
154
155
return result == ContentDialogResult.Primary;
0 commit comments