mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge pull request #3821 from Flow-Launcher/fix-uwp-package-monitoring
Fix the issue that UWP changes that can't be monitored (#2345)
This commit is contained in:
commit
a6a28ce8b1
1 changed files with 2 additions and 1 deletions
|
|
@ -290,12 +290,13 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
|||
}
|
||||
|
||||
private static readonly Channel<byte> PackageChangeChannel = Channel.CreateBounded<byte>(1);
|
||||
private static PackageCatalog? catalog;
|
||||
|
||||
public static async Task WatchPackageChangeAsync()
|
||||
{
|
||||
if (Environment.OSVersion.Version.Major >= 10)
|
||||
{
|
||||
var catalog = PackageCatalog.OpenForCurrentUser();
|
||||
catalog ??= PackageCatalog.OpenForCurrentUser();
|
||||
catalog.PackageInstalling += (_, args) =>
|
||||
{
|
||||
if (args.IsComplete)
|
||||
|
|
|
|||
Loading…
Reference in a new issue