mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix path case in comparison
This commit is contained in:
parent
8d4a21ed95
commit
44c541bd1e
1 changed files with 2 additions and 1 deletions
|
|
@ -640,7 +640,8 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
|||
// select like logo.[xxx_yyy].png
|
||||
// https://learn.microsoft.com/en-us/windows/uwp/app-resources/tailor-resources-lang-scale-contrast
|
||||
var logos = files.Where(file =>
|
||||
Path.GetFileName(file).StartsWith(logoNamePrefix) && extension == Path.GetExtension(file)
|
||||
Path.GetFileName(file)?.StartsWith(logoNamePrefix, StringComparison.OrdinalIgnoreCase) ?? false
|
||||
&& extension.Equals(Path.GetExtension(file), StringComparison.OrdinalIgnoreCase)
|
||||
);
|
||||
|
||||
var selected = logos.FirstOrDefault();
|
||||
|
|
|
|||
Loading…
Reference in a new issue