partial fix for #964

This commit is contained in:
bao-qian 2016-09-05 22:30:29 +01:00
parent 89a77feea7
commit 2c14f8b43b

View file

@ -76,11 +76,14 @@ namespace Wox.Plugin.Program.Programs
UserModelId = current.GetAppUserModelId(), UserModelId = current.GetAppUserModelId(),
BackgroundColor = current.GetStringValue("BackgroundColor") ?? string.Empty, BackgroundColor = current.GetStringValue("BackgroundColor") ?? string.Empty,
Location = Location, Location = Location,
LogoPath = Application.LogoFromManifest(current, Location) LogoPath = Application.LogoFromManifest(current, Location),
Valid = true // useless for now
}; };
app.Valid = !string.IsNullOrEmpty(app.UserModelId); if (!string.IsNullOrEmpty(app.UserModelId))
parsedApps.Add(app); {
parsedApps.Add(app);
}
} }
apps.MoveNext(); apps.MoveNext();
} }
@ -138,10 +141,9 @@ namespace Wox.Plugin.Program.Programs
{ {
var infos = AppInfos(); var infos = AppInfos();
var displayInfos = AppDisplayInfos();
if (infos.Length > 0) if (infos.Length > 0)
{ {
var displayInfos = AppDisplayInfos();
var apps = infos; var apps = infos;
// todo: temp hack for multipla application mismatch problem // todo: temp hack for multipla application mismatch problem
// e.g. mail and calendar, skype video and messaging // e.g. mail and calendar, skype video and messaging