Commit fd85ba85 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

KDED: restore output scale from config

Summary: Fixes scaling not being restored when known config is being applied.

Reviewers: sebas, davidedmundson

Reviewed By: davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D9902
parent 8584cd96
......@@ -256,6 +256,7 @@ KScreen::OutputPtr Serializer::findOutput(const KScreen::ConfigPtr &config, cons
output->setPrimary(info[QStringLiteral("primary")].toBool());
output->setEnabled(info[QStringLiteral("enabled")].toBool());
output->setRotation(static_cast<KScreen::Output::Rotation>(info[QStringLiteral("rotation")].toInt()));
output->setScale(info.value(QStringLiteral("scale"), 1).toInt());
const QVariantMap modeInfo = info[QStringLiteral("mode")].toMap();
const QVariantMap modeSize = modeInfo[QStringLiteral("size")].toMap();
......
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