From 09aadf0e9c514d1d15725e6b27904b882e90cdbe Mon Sep 17 00:00:00 2001 From: Silent Date: Sun, 23 Jun 2019 22:34:40 +0200 Subject: [PATCH] Fix CPU Clock Override checkbox not updating with GameINI - also bold it if it's overriden --- Source/Core/DolphinQt/Settings/AdvancedPane.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Core/DolphinQt/Settings/AdvancedPane.cpp b/Source/Core/DolphinQt/Settings/AdvancedPane.cpp index 3d3126d011..d8ae447237 100644 --- a/Source/Core/DolphinQt/Settings/AdvancedPane.cpp +++ b/Source/Core/DolphinQt/Settings/AdvancedPane.cpp @@ -136,6 +136,12 @@ void AdvancedPane::Update() const bool enable_cpu_clock_override_widgets = SConfig::GetInstance().m_OCEnable; const bool enable_custom_rtc_widgets = SConfig::GetInstance().bEnableCustomRTC && !running; + QFont bf = font(); + bf.setBold(Config::GetActiveLayerForConfig(Config::MAIN_OVERCLOCK_ENABLE) != + Config::LayerType::Base); + m_cpu_clock_override_checkbox->setFont(bf); + m_cpu_clock_override_checkbox->setChecked(enable_cpu_clock_override_widgets); + m_cpu_clock_override_slider->setEnabled(enable_cpu_clock_override_widgets); m_cpu_clock_override_slider_label->setEnabled(enable_cpu_clock_override_widgets);