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