From 81e252d564544c391a781512d65553c88b46af54 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Wed, 11 Sep 2019 08:01:38 +1000 Subject: [PATCH] Update load programsources with uniqueidentifier --- .../Views/Commands/ProgramSettingDisplay.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Plugins/Wox.Plugin.Program/Views/Commands/ProgramSettingDisplay.cs b/Plugins/Wox.Plugin.Program/Views/Commands/ProgramSettingDisplay.cs index a2889ec105..1e08f080bb 100644 --- a/Plugins/Wox.Plugin.Program/Views/Commands/ProgramSettingDisplay.cs +++ b/Plugins/Wox.Plugin.Program/Views/Commands/ProgramSettingDisplay.cs @@ -13,7 +13,15 @@ namespace Wox.Plugin.Program.Views.Commands { var list = new List(); - programSources.ForEach(x => list.Add(new ProgramSource { Enabled = x.Enabled, Location = x.Location, Name = x.Name })); + programSources.ForEach(x => list + .Add( + new ProgramSource { + Enabled = x.Enabled, + Location = x.Location, + Name = x.Name, + UniqueIdentifier = x.UniqueIdentifier + } + )); return list; } @@ -30,7 +38,8 @@ namespace Wox.Plugin.Program.Views.Commands Location = t1.ParentDirectory, UniqueIdentifier = t1.UniqueIdentifier, Enabled = t1.Enabled - })); + } + )); Main._uwps .Where(t1 => !ProgramSetting.ProgramSettingDisplayList.Any(x => x.UniqueIdentifier == t1.UniqueIdentifier))