Skip to content

Commit 86b6df4

Browse files
authored
Fix: Fixed issue with review Files dialog not working (#12029)
1 parent e530ba4 commit 86b6df4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Files.App/Views/MainPage.xaml.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using Files.Backend.Extensions;
1616
using Files.Backend.Services.Settings;
1717
using Files.Shared.EventArguments;
18+
using Microsoft.Extensions.Logging;
1819
using Microsoft.UI.Input;
1920
using Microsoft.UI.Xaml;
2021
using Microsoft.UI.Xaml.Controls;
@@ -30,6 +31,7 @@
3031
using Windows.Services.Store;
3132
using Windows.Storage;
3233
using Windows.System;
34+
using WinRT.Interop;
3335

3436
namespace Files.App.Views
3537
{
@@ -92,7 +94,10 @@ private async Task PromptForReview()
9294
try
9395
{
9496
var storeContext = StoreContext.GetDefault();
95-
await storeContext.RequestRateAndReviewAppAsync();
97+
InitializeWithWindow.Initialize(storeContext, App.WindowHandle);
98+
var storeRateAndReviewResult = await storeContext.RequestRateAndReviewAppAsync();
99+
100+
App.Logger.LogInformation($"STORE: review request status: {storeRateAndReviewResult.Status}");
96101

97102
UserSettingsService.ApplicationSettingsService.ClickedToReviewApp = true;
98103
}

0 commit comments

Comments
 (0)