kcms/mobileshell: Remove gesture only navigation option for now

The KWin gesture currently does not work at all, so turning off the navigation panel makes it so the user cannot navigate.

See https://invent.kde.org/plasma/plasma-mobile/-/issues/300
This commit is contained in:
Devin Lin 2024-01-21 22:54:32 -05:00
parent d375914a8c
commit 037f24833c
2 changed files with 15 additions and 13 deletions

View file

@ -91,7 +91,8 @@ void MobileShellSettings::setNavigationPanelEnabled(bool navigationPanelEnabled)
group.writeEntry("navigationPanelEnabled", navigationPanelEnabled, KConfigGroup::Notify);
m_config->sync();
updateNavigationBarsInPlasma(navigationPanelEnabled);
// TODO: Gesture only mode setting is disabled until we get the kwin effect gesture working: https://invent.kde.org/plasma/plasma-mobile/-/issues/300
// updateNavigationBarsInPlasma(navigationPanelEnabled);
}
bool MobileShellSettings::alwaysShowKeyboardToggleOnNavigationPanel() const

View file

@ -54,19 +54,20 @@ KCM.SimpleKCM {
}
FormCard.FormCard {
FormCard.FormSwitchDelegate {
id: gestureDelegate
text: i18n("Gesture-only Mode")
description: i18n("Whether to hide the navigation panel.")
checked: !ShellSettings.Settings.navigationPanelEnabled
onCheckedChanged: {
if (checked != !ShellSettings.Settings.navigationPanelEnabled) {
ShellSettings.Settings.navigationPanelEnabled = !checked;
}
}
}
// TODO: Gesture only mode setting is disabled until we get the kwin effect gesture working: https://invent.kde.org/plasma/plasma-mobile/-/issues/300
// FormCard.FormSwitchDelegate {
// id: gestureDelegate
// text: i18n("Gesture-only Mode")
// description: i18n("Whether to hide the navigation panel.")
// checked: !ShellSettings.Settings.navigationPanelEnabled
// onCheckedChanged: {
// if (checked != !ShellSettings.Settings.navigationPanelEnabled) {
// ShellSettings.Settings.navigationPanelEnabled = !checked;
// }
// }
// }
FormCard.FormDelegateSeparator { visible: keyboardToggleDelegate.visible; above: gestureDelegate; below: keyboardToggleDelegate }
// FormCard.FormDelegateSeparator { visible: keyboardToggleDelegate.visible; above: gestureDelegate; below: keyboardToggleDelegate }
FormCard.FormSwitchDelegate {
id: keyboardToggleDelegate