From b2479a7f42dbc5e77346973d67678410ec441243 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Fri, 2 Jan 2026 22:48:32 +0100 Subject: [PATCH] cosmetic: make the hide/show more consistent with rds spy --- plugin.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugin.c b/plugin.c index b692f3e..f374e5c 100644 --- a/plugin.c +++ b/plugin.c @@ -564,9 +564,8 @@ __declspec(dllexport) void WINAPI Command(const char* Cmd, const char* Param) { lua_close(L); L = NULL; } - } else if (_stricmp(Cmd, "CONFIGURE") == 0 || _stricmp(Cmd, "SHOW") == 0) ShowWindow(hWnd, SW_SHOW); - else if (_stricmp(Cmd, "MINIMIZE") == 0) ShowWindow(hWnd, SW_MINIMIZE); - else if (_stricmp(Cmd, "RESTORE") == 0) ShowWindow(hWnd, SW_RESTORE); + } 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_HIDE); else if (_stricmp(Cmd, "OPENWORKSPACE") == 0) { if(hWnd != NULL) { int value = GetPrivateProfileIntA("luahost", "Visible", 0, Param);