Explorar o código

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.
lat9nq %!s(int64=3) %!d(string=hai) anos
pai
achega
fe6e765b2d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/yuzu/configuration/shared_widget.cpp

+ 1 - 1
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;