cosmetic: make the hide/show more consistent with rds spy

This commit is contained in:
2026-01-02 22:48:32 +01:00
parent c496d2cfd6
commit b2479a7f42

View File

@@ -564,9 +564,8 @@ __declspec(dllexport) void WINAPI Command(const char* Cmd, const char* Param) {
lua_close(L); lua_close(L);
L = NULL; L = NULL;
} }
} else if (_stricmp(Cmd, "CONFIGURE") == 0 || _stricmp(Cmd, "SHOW") == 0) ShowWindow(hWnd, SW_SHOW); } else if (_stricmp(Cmd, "CONFIGURE") == 0 || _stricmp(Cmd, "SHOW") == 0 || _stricmp(Cmd, "RESTORE") == 0) ShowWindow(hWnd, SW_SHOW);
else if (_stricmp(Cmd, "MINIMIZE") == 0) ShowWindow(hWnd, SW_MINIMIZE); else if (_stricmp(Cmd, "MINIMIZE") == 0) ShowWindow(hWnd, SW_HIDE);
else if (_stricmp(Cmd, "RESTORE") == 0) ShowWindow(hWnd, SW_RESTORE);
else if (_stricmp(Cmd, "OPENWORKSPACE") == 0) { else if (_stricmp(Cmd, "OPENWORKSPACE") == 0) {
if(hWnd != NULL) { if(hWnd != NULL) {
int value = GetPrivateProfileIntA("luahost", "Visible", 0, Param); int value = GetPrivateProfileIntA("luahost", "Visible", 0, Param);