mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 02:03:47 +01:00
Make Enable Debug Logging checkbox instant as it was intended to be.
This commit is contained in:
1 parent
5b127af679
commit
9c868351de
7 files changed
+23
-32
No files matched your search
+11
-10
@@ -1588,16 +1588,6 @@ namespace MainWindow
|
||||
SetCursor(LoadCursor(0, IDC_ARROW));
|
||||
break;
|
||||
|
||||
case WM_USER_LOG_STATUS_CHANGED:
|
||||
if(!g_Config.bEnableLogging) {
|
||||
LogManager::GetInstance()->GetConsoleListener()->Show(false);
|
||||
EnableMenuItem(menu, ID_DEBUG_LOG, MF_GRAYED);
|
||||
} else {
|
||||
LogManager::GetInstance()->GetConsoleListener()->Show(true);
|
||||
EnableMenuItem(menu, ID_DEBUG_LOG, MF_ENABLED);
|
||||
}
|
||||
break;
|
||||
|
||||
case WM_USER_UPDATE_UI:
|
||||
TranslateMenus();
|
||||
Update();
|
||||
@@ -1863,4 +1853,15 @@ namespace MainWindow
|
||||
HINSTANCE GetHInstance() {
|
||||
return hInst;
|
||||
}
|
||||
|
||||
void ShowDebugConsole(bool) {
|
||||
if (!g_Config.bEnableLogging) {
|
||||
LogManager::GetInstance()->GetConsoleListener()->Show(false);
|
||||
EnableMenuItem(menu, ID_DEBUG_LOG, MF_GRAYED);
|
||||
}
|
||||
else {
|
||||
LogManager::GetInstance()->GetConsoleListener()->Show(true);
|
||||
EnableMenuItem(menu, ID_DEBUG_LOG, MF_ENABLED);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user