Commit cd234c96 authored by David Edmundson's avatar David Edmundson
Browse files

[tabletmodemanager] Avoid unnecessary signalling

oldEffectiveTabletMode was currently unused
parent 87fbdd04
Pipeline #183131 passed with stage
in 13 minutes and 38 seconds
......@@ -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());
}
}
......
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