Skip to content

Commit 460ad60

Browse files
committed
Update MainPageViewModel.cs
1 parent 1e82805 commit 460ad60

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Files.App/ViewModels/MainPageViewModel.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,12 @@ private void ExecuteReviewAppCommand()
325325
UserSettingsService.ApplicationSettingsService.ClickedToReviewApp = true;
326326
OnPropertyChanged(nameof(ShowReviewPrompt));
327327

328-
var storeContext = StoreContext.GetDefault();
329-
InitializeWithWindow.Initialize(storeContext, MainWindow.Instance.WindowHandle);
328+
try
329+
{
330+
var storeContext = StoreContext.GetDefault();
331+
InitializeWithWindow.Initialize(storeContext, MainWindow.Instance.WindowHandle);
332+
}
333+
catch (Exception) { }
330334
}
331335

332336
private void ExecuteDismissReviewPromptCommand()

0 commit comments

Comments
 (0)