Commit 70458eb2 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

plugins/nightcolor: Handle new color devices

This ensures that new outputs have the right color temperature.
parent 8b03fc9e
......@@ -17,7 +17,6 @@
#include <main.h>
#include <platform.h>
#include <screens.h>
#include <workspace.h>
#include <logind.h>
......@@ -110,7 +109,7 @@ void NightColorManager::init()
KGlobalAccel::setGlobalShortcut(toggleAction, QList<QKeySequence>());
input()->registerShortcut(QKeySequence(), toggleAction, this, &NightColorManager::toggle);
connect(Screens::self(), &Screens::countChanged, this, &NightColorManager::hardReset);
connect(ColorManager::self(), &ColorManager::deviceAdded, this, &NightColorManager::hardReset);
connect(LogindIntegration::self(), &LogindIntegration::sessionActiveChanged, this,
[this](bool active) {
......
Markdown is supported
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