From fe6e765b2dcb892a7b52259bac1318e5f8e30a2b Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Sat, 10 Jun 2023 00:20:59 -0400 Subject: [PATCH] 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. --- src/yuzu/configuration/shared_widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yuzu/configuration/shared_widget.cpp b/src/yuzu/configuration/shared_widget.cpp index 52e617da2..b83150f2b 100644 --- a/src/yuzu/configuration/shared_widget.cpp +++ b/src/yuzu/configuration/shared_widget.cpp @@ -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;