Skip to content

Commit

Permalink
Fix: Fixed issue with review Files dialog not working (#12029)
Browse files Browse the repository at this point in the history
  • Loading branch information
hishitetsu committed Apr 14, 2023
1 parent e530ba4 commit 86b6df4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Files.App/Views/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
using Files.Backend.Extensions;
using Files.Backend.Services.Settings;
using Files.Shared.EventArguments;
using Microsoft.Extensions.Logging;
using Microsoft.UI.Input;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
Expand All @@ -30,6 +31,7 @@
using Windows.Services.Store;
using Windows.Storage;
using Windows.System;
using WinRT.Interop;

namespace Files.App.Views
{
Expand Down Expand Up @@ -92,7 +94,10 @@ private async Task PromptForReview()
try
{
var storeContext = StoreContext.GetDefault();
await storeContext.RequestRateAndReviewAppAsync();
InitializeWithWindow.Initialize(storeContext, App.WindowHandle);
var storeRateAndReviewResult = await storeContext.RequestRateAndReviewAppAsync();

App.Logger.LogInformation($"STORE: review request status: {storeRateAndReviewResult.Status}");

UserSettingsService.ApplicationSettingsService.ClickedToReviewApp = true;
}
Expand Down

0 comments on commit 86b6df4

Please sign in to comment.