mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add FileType / Ignore Case Senstive
This commit is contained in:
parent
d96ddd3e95
commit
c622edab99
1 changed files with 9 additions and 0 deletions
|
|
@ -29,6 +29,11 @@ namespace Flow.Launcher.ViewModel
|
|||
Result = result;
|
||||
|
||||
PreviewExtension = Path.GetExtension(result.PreviewImage ?? result.IcoPath);
|
||||
if (PreviewExtension != null)
|
||||
{
|
||||
PreviewExtension = PreviewExtension.ToLowerInvariant();
|
||||
|
||||
}
|
||||
|
||||
if (Result.Glyph is { FontFamily: not null } glyph)
|
||||
{
|
||||
|
|
@ -173,7 +178,11 @@ namespace Flow.Launcher.ViewModel
|
|||
|
||||
public bool PreviewIsImageOrVideo => PreviewExtension is ".jpg"
|
||||
or ".png"
|
||||
or ".avi"
|
||||
or ".mkv"
|
||||
or ".bmp"
|
||||
or ".gif"
|
||||
or ".wmv"
|
||||
or ".mp4";
|
||||
|
||||
public GlyphInfo Glyph { get; set; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue