mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 07:35:45 +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
38683238a8
commit
442f0899a8
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ QWidget* Widget::CreateSlider(bool reversed, float multiplier, const QString& fo
|
||||||
if (!Settings::IsConfiguringGlobal()) {
|
if (!Settings::IsConfiguringGlobal()) {
|
||||||
restore_func = [this]() { slider->setValue(std::stoi(setting.ToStringGlobal())); };
|
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;
|
return container;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue