Qt: Tidy up Tools menu

Make System Console and Verbose contingent on Advanced Settings being enabled.
Make Debug Console contingent on actually running under a debugger.
This commit is contained in:
Stenzek
2024-01-13 12:26:34 +10:00
committed by Connor McLaughlin
parent 4b6ddaf09e
commit f9833bb8af
4 changed files with 37 additions and 13 deletions
+9
View File
@@ -271,6 +271,15 @@ cleanup:
#endif
}
bool Log::IsDebugOutputAvailable()
{
#ifdef _WIN32
return IsDebuggerPresent();
#else
return false;
#endif
}
bool Log::IsDebugOutputEnabled()
{
return (s_console_level > LOGLEVEL_NONE);