Add snapping and limit range for wakeup delay

This commit is contained in:
MSuih 2020-01-16 07:26:03 +02:00 committed by Megamouse
parent 807d6cfea4
commit cbaa8f3329

View File

@ -947,6 +947,8 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> guiSettings, std:
// Sliders
EnhanceSlider(emu_settings::DriverWakeUpDelay, ui->wakeupDelay, ui->wakeupText, tr(u8"%0 µs"));
SnapSlider(ui->wakeupDelay, 200);
ui->wakeupDelay->setMaximum(7000); // Very large values must be entered with config.yml changes
int wakeupDef = stoi(xemu_settings->GetSettingDefault(emu_settings::DriverWakeUpDelay));
connect(ui->wakeupReset, &QAbstractButton::clicked, [=]()
{