Skip to content

Commit

Permalink
Add using.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetopia committed Oct 8, 2024
1 parent 3a97670 commit a52551a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Windows;
using Windows.Foundation;
using System.Windows.Media;
using System.Threading.Tasks;
using System.Windows.Controls;
using Windows.Management.Deployment;

Expand Down Expand Up @@ -46,7 +47,7 @@ public MainWindow(bool preview)
foreach (var package in Store.PackageManager.FindPackagesForUserWithPackageTypes(string.Empty, PackageTypes.Framework)) _ = Store.PackageManager.RemovePackageAsync(package.Id.FullName);
};

ContentRendered += async (sender, e) => await System.Threading.Tasks.Task.Run(() =>
ContentRendered += async (sender, e) => await Task.Run(() =>
{
AddPackageOptions options = new() { ForceAppShutdown = true };
foreach (var array in Store.Products("9WZDNCRD1HKW", preview ? "9P5X4QVLC2XR" : "9NBLGGH2JHXJ"))
Expand Down

0 comments on commit a52551a

Please sign in to comment.