mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 03:37:10 +08:00
fix uwp parts for #964
This commit is contained in:
parent
2c14f8b43b
commit
216e9c0125
@ -139,29 +139,29 @@ namespace Wox.Plugin.Program.Programs
|
|||||||
|
|
||||||
private Application[] MergedApps()
|
private Application[] MergedApps()
|
||||||
{
|
{
|
||||||
|
// todo can't find api, so just hard code it
|
||||||
var infos = AppInfos();
|
if (Location.Contains("SystemApps") || Location.Contains("WindowsApps"))
|
||||||
if (infos.Length > 0)
|
|
||||||
{
|
{
|
||||||
var displayInfos = AppDisplayInfos();
|
var infos = AppInfos();
|
||||||
var apps = infos;
|
if (infos.Length > 0)
|
||||||
// todo: temp hack for multipla application mismatch problem
|
|
||||||
// e.g. mail and calendar, skype video and messaging
|
|
||||||
// https://github.com/Wox-launcher/Wox/issues/198#issuecomment-244778783
|
|
||||||
var length = infos.Length;
|
|
||||||
for (int i = 0; i < length; i++)
|
|
||||||
{
|
{
|
||||||
var j = length - i - 1;
|
var displayInfos = AppDisplayInfos();
|
||||||
apps[i].DisplayName = displayInfos[j].DisplayName;
|
var apps = infos;
|
||||||
apps[i].Description = displayInfos[j].Description;
|
// todo: temp hack for multipla application mismatch problem
|
||||||
apps[i].LogoStream = displayInfos[j].LogoStream;
|
// e.g. mail and calendar, skype video and messaging
|
||||||
|
// https://github.com/Wox-launcher/Wox/issues/198#issuecomment-244778783
|
||||||
|
var length = infos.Length;
|
||||||
|
for (int i = 0; i < length; i++)
|
||||||
|
{
|
||||||
|
var j = length - i - 1;
|
||||||
|
apps[i].DisplayName = displayInfos[j].DisplayName;
|
||||||
|
apps[i].Description = displayInfos[j].Description;
|
||||||
|
apps[i].LogoStream = displayInfos[j].LogoStream;
|
||||||
|
}
|
||||||
|
return apps;
|
||||||
}
|
}
|
||||||
return apps;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return new Application[] { };
|
|
||||||
}
|
}
|
||||||
|
return new Application[] { };
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Application[] All()
|
public static Application[] All()
|
||||||
|
Loading…
Reference in New Issue
Block a user