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.
This commit is contained in:
parent
d074b47aab
commit
a53100dd55
1 changed files with 1 additions and 0 deletions
|
@ -272,6 +272,7 @@ ColorDevice::ColorDevice(AbstractOutput *output, QObject *parent)
|
|||
connect(d->updateTimer, &QTimer::timeout, this, &ColorDevice::update);
|
||||
|
||||
d->output = output;
|
||||
scheduleUpdate();
|
||||
}
|
||||
|
||||
ColorDevice::~ColorDevice()
|
||||
|
|
Loading…
Reference in a new issue