mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Avoid unnecessary logo finding
This commit is contained in:
parent
afc0946eda
commit
6fdf2f101b
1 changed files with 5 additions and 1 deletions
|
|
@ -699,10 +699,14 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
|||
var logoPath = TryToFindLogo(uri, path);
|
||||
if (String.IsNullOrEmpty(logoPath))
|
||||
{
|
||||
var tmp = Path.Combine(Package.Location, "Assets", uri);
|
||||
if (!path.Equals(tmp, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
// TODO: Don't know why, just keep it at the moment
|
||||
// Maybe on older version of Windows 10?
|
||||
// for C:\Windows\MiracastView etc
|
||||
return TryToFindLogo(uri, Path.Combine(Package.Location, "Assets", uri));
|
||||
return TryToFindLogo(uri, tmp);
|
||||
}
|
||||
}
|
||||
return logoPath;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue