mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
shared_widget: Use actionTriggered for user input signals
Clicking the slider without directly interacting with the slider handle would change the value, but not trigger the restore button.
This commit is contained in:
parent
47d870b11f
commit
fe6e765b2d
|
@ -194,7 +194,7 @@ QWidget* Widget::CreateSlider(bool reversed, float multiplier, const QString& fo
|
|||
if (!Settings::IsConfiguringGlobal()) {
|
||||
restore_func = [this]() { slider->setValue(std::stoi(setting.ToStringGlobal())); };
|
||||
|
||||
QObject::connect(slider, &QAbstractSlider::sliderReleased, [touch]() { touch(); });
|
||||
QObject::connect(slider, &QAbstractSlider::actionTriggered, [touch]() { touch(); });
|
||||
}
|
||||
|
||||
return container;
|
||||
|
|
Loading…
Reference in a new issue