[tabletmodemanager] Avoid unnecessary signalling

oldEffectiveTabletMode was currently unused
This commit is contained in:
David Edmundson 2022-05-30 19:38:26 +01:00
parent 87fbdd04fe
commit cd234c96f7

View file

@ -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());
}
}