mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
kcm: Fix vibration intensity property setting
This commit is contained in:
parent
9a575ad42e
commit
5f127460c7
1 changed files with 2 additions and 2 deletions
|
|
@ -67,13 +67,13 @@ void MobileShellSettings::setVibrationDuration(int vibrationDuration)
|
|||
qreal MobileShellSettings::vibrationIntensity() const
|
||||
{
|
||||
auto group = KConfigGroup{m_config, GENERAL_CONFIG_GROUP};
|
||||
return group.readEntry("vibrationDuration", 0.5);
|
||||
return group.readEntry("vibrationIntensity", 0.5);
|
||||
}
|
||||
|
||||
void MobileShellSettings::setVibrationIntensity(qreal vibrationIntensity)
|
||||
{
|
||||
auto group = KConfigGroup{m_config, GENERAL_CONFIG_GROUP};
|
||||
group.writeEntry("vibrationDuration", vibrationIntensity, KConfigGroup::Notify);
|
||||
group.writeEntry("vibrationIntensity", vibrationIntensity, KConfigGroup::Notify);
|
||||
m_config->sync();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue