diff options
| author | 2023-06-10 00:20:59 -0400 | |
|---|---|---|
| committer | 2023-07-21 10:56:54 -0400 | |
| commit | fe6e765b2dcb892a7b52259bac1318e5f8e30a2b (patch) | |
| tree | 43a15bc1dcb5f193c6d93b40b7aaada687cef0c6 /src | |
| parent | shared_translation: Populate combobox enums with macro (diff) | |
| download | yuzu-fe6e765b2dcb892a7b52259bac1318e5f8e30a2b.tar.gz yuzu-fe6e765b2dcb892a7b52259bac1318e5f8e30a2b.tar.xz yuzu-fe6e765b2dcb892a7b52259bac1318e5f8e30a2b.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/configuration/shared_widget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
| 194 | if (!Settings::IsConfiguringGlobal()) { | 194 | if (!Settings::IsConfiguringGlobal()) { |
| 195 | restore_func = [this]() { slider->setValue(std::stoi(setting.ToStringGlobal())); }; | 195 | restore_func = [this]() { slider->setValue(std::stoi(setting.ToStringGlobal())); }; |
| 196 | 196 | ||
| 197 | QObject::connect(slider, &QAbstractSlider::sliderReleased, [touch]() { touch(); }); | 197 | QObject::connect(slider, &QAbstractSlider::actionTriggered, [touch]() { touch(); }); |
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | return container; | 200 | return container; |