[tabletmodemanager] Avoid unnecessary signalling
oldEffectiveTabletMode was currently unused
This commit is contained in:
parent
87fbdd04fe
commit
cd234c96f7
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue