Qt: Fix widgets being visible when they shouldn't be

This commit is contained in:
spycrab
2018-08-20 00:39:57 +02:00
parent c3b0208de6
commit 77ebd721e3
3 changed files with 13 additions and 0 deletions

View File

@ -434,6 +434,13 @@ bool Settings::IsJITVisible() const
return QSettings().value(QStringLiteral("debugger/showjit")).toBool();
}
void Settings::RefreshWidgetVisibility()
{
emit DebugModeToggled(IsDebugModeEnabled());
emit LogVisibilityChanged(IsLogVisible());
emit LogConfigVisibilityChanged(IsLogConfigVisible());
}
void Settings::SetDebugFont(QFont font)
{
if (GetDebugFont() != font)