OutputDevice: only report the scale when scaleFChanged is emitted

scaleChanged and scaleFChanged are emitted at the same time, there's no
reason to send them twice.
This commit is contained in:
Aleix Pol 2020-10-21 20:47:36 +02:00
parent 026923db94
commit 571b7e86a8

View file

@ -133,8 +133,7 @@ OutputDeviceInterface::OutputDeviceInterface(Display *display, QObject *parent)
connect(this, &OutputDeviceInterface::globalPositionChanged, this, [d] { d->updateGeometry(); });
connect(this, &OutputDeviceInterface::modelChanged, this, [d] { d->updateGeometry(); });
connect(this, &OutputDeviceInterface::manufacturerChanged, this, [d] { d->updateGeometry(); });
connect(this, &OutputDeviceInterface::scaleFChanged, this, [d] { d->updateScale(); });
connect(this, &OutputDeviceInterface::scaleChanged, this, [d] { d->updateScale(); });
connect(this, &OutputDeviceInterface::scaleFChanged, this, [d] { d->updateScale(); });
connect(this, &OutputDeviceInterface::colorCurvesChanged, this, [d] { d->updateColorCurves(); });
}