Commit 30376403 authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈
Browse files

when loading defaults don't forget to set enablement

by default we'll want outputs to get enabled unless we know that they
shouldn't be. otherwise the user has a bunch of useless(ly) disabled
screens if we fail to load configs.
parent 9b4cc97a
......@@ -91,6 +91,7 @@ void Output::readInGlobalPartFromInfo(KScreen::OutputPtr output, const QVariantM
output->setVrrPolicy(config.vrrPolicy.value_or(KScreen::Output::VrrPolicy::Automatic));
output->setOverscan(config.overscan.value_or(0));
output->setRgbRange(config.rgbRange.value_or(KScreen::Output::RgbRange::Automatic));
output->setEnabled(true); // gets disabled later if necessary
KScreen::ModePtr matchingMode;
if (config.modeId) {
......
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