Commit 82fe38a1 authored by Arjen Hiemstra's avatar Arjen Hiemstra Committed by Vlad Zahorodnii
Browse files

ColorDevice: Always update on creation

ColorDevice gets recreated when outputs get removed and added back. This
means the output can be in an unknown state that does not match the
values in ColorDevice. So ensure we update after creating the device to
set it to a known proper state.


(cherry picked from commit a53100dd)
parent 938383da
...@@ -272,6 +272,7 @@ ColorDevice::ColorDevice(AbstractOutput *output, QObject *parent) ...@@ -272,6 +272,7 @@ ColorDevice::ColorDevice(AbstractOutput *output, QObject *parent)
connect(d->updateTimer, &QTimer::timeout, this, &ColorDevice::update); connect(d->updateTimer, &QTimer::timeout, this, &ColorDevice::update);
d->output = output; d->output = output;
scheduleUpdate();
} }
ColorDevice::~ColorDevice() ColorDevice::~ColorDevice()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment