TerminalFont: fix Windows Terminal font detection when running inside msys2

This commit is contained in:
李通洲
2022-11-23 15:35:45 +08:00
parent 051423e75e
commit 66f8a8cdd0
+1 -1
View File
@@ -195,7 +195,7 @@ static void detectFromWindowsTeriminal(const FFinstance* instance, const FFstrbu
const char* error = NULL;
#ifdef _WIN32
if(terminalExe && terminalExe->length > 0)
if(terminalExe && terminalExe->length > 0 && !ffStrbufEqualS(terminalExe, "Windows Terminal"))
{
char jsonPath[MAX_PATH + 1];
if(SUCCEEDED(SHGetFolderPathA(NULL, CSIDL_LOCAL_APPDATA, NULL, 0, jsonPath)))