From cd234c96f76ed868c7bb81b9a74a8961b07475ef Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Mon, 30 May 2022 19:38:26 +0100 Subject: [PATCH] [tabletmodemanager] Avoid unnecessary signalling oldEffectiveTabletMode was currently unused --- src/tabletmodemanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tabletmodemanager.cpp b/src/tabletmodemanager.cpp index 6fa204748e..4326b1e540 100644 --- a/src/tabletmodemanager.cpp +++ b/src/tabletmodemanager.cpp @@ -143,12 +143,12 @@ void KWin::TabletModeManager::refreshSettings() if (!m_detecting) { Q_EMIT tabletModeAvailableChanged(true); } - Q_EMIT tabletModeChanged(true); } else if (tabletModeConfig == QStringLiteral("off")) { m_configuredMode = ConfiguredMode::Off; - Q_EMIT tabletModeChanged(false); } else { m_configuredMode = ConfiguredMode::Auto; + } + if (effectiveTabletMode() != oldEffectiveTabletMode) { Q_EMIT tabletModeChanged(effectiveTabletMode()); } }