From f22da5f62a2f0a6b1977e2cdb0859cbb7d6ef6df Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 20 Oct 2023 14:32:36 +0300 Subject: [PATCH] Fix reloading animation speed option Amends 4d2c9f5d886f796dd690b8ad1e1761ae74bd2e66. Prior to 4d2c9f5d886f796dd690b8ad1e1761ae74bd2e66, the Compositor used to force the Options to reload settings when starting compositing. Unfortunately it was overlooked that Options::animationTimeFactor() can return an old value when the Options::animationSpeedChanged() signal is emitted. This change addresses that. --- src/options.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/options.cpp b/src/options.cpp index 3849d453a2..0589ac809c 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -96,6 +96,7 @@ Options::Options(QObject *parent) m_configWatcher = KConfigWatcher::create(m_settings->sharedConfig()); connect(m_configWatcher.data(), &KConfigWatcher::configChanged, this, [this](const KConfigGroup &group, const QByteArrayList &names) { if (group.name() == QLatin1String("KDE") && names.contains(QByteArrayLiteral("AnimationDurationFactor"))) { + m_settings->load(); Q_EMIT animationSpeedChanged(); } else if (group.name() == QLatin1String("Xwayland")) { workspace()->reconfigure();