mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
add comment for system font loading
This commit is contained in:
parent
db117b9418
commit
317ce59ee7
1 changed files with 2 additions and 1 deletions
|
|
@ -20,6 +20,7 @@ namespace Flow.Launcher.ViewModel
|
|||
|
||||
if (Result.Glyph is { FontFamily: not null } glyph)
|
||||
{
|
||||
// Checks if it's a system installed font, which does not require path to be provided.
|
||||
if (glyph.FontFamily.EndsWith(".ttf") || glyph.FontFamily.EndsWith(".otf"))
|
||||
{
|
||||
var fontPath = Result.Glyph.FontFamily;
|
||||
|
|
@ -127,4 +128,4 @@ namespace Flow.Launcher.ViewModel
|
|||
return Result.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue