Merge pull request #2346 from illuminatedgeek/cpu-override-slider-enabled

Make OC slider match enabled state on window load
This commit is contained in:
Lioncash 2015-04-30 05:38:09 -04:00
commit 1fded22afa
1 changed files with 3 additions and 1 deletions

View File

@ -63,8 +63,10 @@ void AdvancedConfigPane::InitializeGUI()
void AdvancedConfigPane::LoadGUIValues()
{
int ocFactor = (int)(std::log2f(SConfig::GetInstance().m_OCFactor) * 25.f + 100.f + 0.5f);
m_clock_override_checkbox->SetValue(SConfig::GetInstance().m_OCEnable);
bool oc_enabled = SConfig::GetInstance().m_OCEnable;
m_clock_override_checkbox->SetValue(oc_enabled);
m_clock_override_slider ->SetValue(ocFactor);
m_clock_override_slider->Enable(oc_enabled);
UpdateCPUClock();
}