Skip to content
Permalink
Browse files

Fix CPU Clock Override checkbox not updating with GameINI - also bold…

… it if it's overriden
  • Loading branch information...
CookiePLMonster committed Jun 23, 2019
1 parent 5262f39 commit 09aadf0e9c514d1d15725e6b27904b882e90cdbe
Showing with 6 additions and 0 deletions.
  1. +6 −0 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);

0 comments on commit 09aadf0

Please sign in to comment.
You can’t perform that action at this time.