Add FileType / Ignore Case Senstive

This commit is contained in:
DB p 2022-11-26 06:12:23 +09:00
parent d96ddd3e95
commit c622edab99

View file

@ -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; }