TerminalFont: fix platform font detection

my bad...
This commit is contained in:
李通洲
2022-10-26 19:59:15 +08:00
parent 9c73f6b787
commit f93bd9e28b
+1 -1
View File
@@ -323,7 +323,7 @@ const FFTerminalFontResult* ffDetectTerminalFont(const FFinstance* instance)
if(terminalShell->terminalProcessName.length == 0)
ffStrbufAppendS(&result.error, "Terminal font needs successfull terminal detection");
else if(detectTerminalFontCommon(instance, terminalShell, &result))
else if(!detectTerminalFontCommon(instance, terminalShell, &result))
ffDetectTerminalFontPlatform(instance, terminalShell, &result);
if(result.error.length == 0 && result.font.pretty.length == 0)