From 2c14f8b43bce9749f9cad7c9e1663f324ce5b4d7 Mon Sep 17 00:00:00 2001 From: bao-qian Date: Mon, 5 Sep 2016 22:30:29 +0100 Subject: [PATCH] partial fix for #964 --- Plugins/Wox.Plugin.Program/Programs/UWP.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Plugins/Wox.Plugin.Program/Programs/UWP.cs b/Plugins/Wox.Plugin.Program/Programs/UWP.cs index 2cf3731670..011dc77fbd 100644 --- a/Plugins/Wox.Plugin.Program/Programs/UWP.cs +++ b/Plugins/Wox.Plugin.Program/Programs/UWP.cs @@ -76,11 +76,14 @@ namespace Wox.Plugin.Program.Programs UserModelId = current.GetAppUserModelId(), BackgroundColor = current.GetStringValue("BackgroundColor") ?? string.Empty, Location = Location, - LogoPath = Application.LogoFromManifest(current, Location) + LogoPath = Application.LogoFromManifest(current, Location), + Valid = true // useless for now }; - app.Valid = !string.IsNullOrEmpty(app.UserModelId); - parsedApps.Add(app); + if (!string.IsNullOrEmpty(app.UserModelId)) + { + parsedApps.Add(app); + } } apps.MoveNext(); } @@ -138,10 +141,9 @@ namespace Wox.Plugin.Program.Programs { var infos = AppInfos(); - var displayInfos = AppDisplayInfos(); - if (infos.Length > 0) { + var displayInfos = AppDisplayInfos(); var apps = infos; // todo: temp hack for multipla application mismatch problem // e.g. mail and calendar, skype video and messaging