diff --git a/src/Files.App/ServicesImplementation/UpdateService.cs b/src/Files.App/ServicesImplementation/UpdateService.cs index a69721513e22..6ccc21f8c334 100644 --- a/src/Files.App/ServicesImplementation/UpdateService.cs +++ b/src/Files.App/ServicesImplementation/UpdateService.cs @@ -8,6 +8,7 @@ using System.Linq; using System.Threading.Tasks; using Windows.Services.Store; +using WinRT.Interop; namespace Files.App.ServicesImplementation { @@ -106,6 +107,9 @@ private async Task GetUpdatePackages() try { _storeContext ??= await Task.Run(StoreContext.GetDefault); + + InitializeWithWindow.Initialize(_storeContext, App.WindowHandle); + var updateList = await _storeContext.GetAppAndOptionalStorePackageUpdatesAsync(); _updatePackages = updateList?.ToList(); }