Skip to content
Permalink
Browse files

Merge pull request #8216 from CookiePLMonster/cpu-override-tick-fix

Fix CPU Clock Override checkbox not updating with GameINI
  • Loading branch information...
leoetlino committed Jun 29, 2019
2 parents 75b2b53 + 09aadf0 commit 274b52acb25231272dd8a8b88decd026293fc0fa
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 274b52a

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