|
|
@ -493,8 +493,6 @@ void Config::ReadControlValues() {
|
|
|
|
ReadSettingGlobal(Settings::values.use_docked_mode, QStringLiteral("use_docked_mode"), false);
|
|
|
|
ReadSettingGlobal(Settings::values.use_docked_mode, QStringLiteral("use_docked_mode"), false);
|
|
|
|
ReadSettingGlobal(Settings::values.vibration_enabled, QStringLiteral("vibration_enabled"),
|
|
|
|
ReadSettingGlobal(Settings::values.vibration_enabled, QStringLiteral("vibration_enabled"),
|
|
|
|
true);
|
|
|
|
true);
|
|
|
|
ReadSettingGlobal(Settings::values.vibration_strength, QStringLiteral("vibration_strength"),
|
|
|
|
|
|
|
|
100);
|
|
|
|
|
|
|
|
ReadSettingGlobal(Settings::values.motion_enabled, QStringLiteral("motion_enabled"), true);
|
|
|
|
ReadSettingGlobal(Settings::values.motion_enabled, QStringLiteral("motion_enabled"), true);
|
|
|
|
|
|
|
|
|
|
|
|
qt_config->endGroup();
|
|
|
|
qt_config->endGroup();
|
|
|
@ -1152,8 +1150,6 @@ void Config::SaveControlValues() {
|
|
|
|
WriteSettingGlobal(QStringLiteral("use_docked_mode"), Settings::values.use_docked_mode, false);
|
|
|
|
WriteSettingGlobal(QStringLiteral("use_docked_mode"), Settings::values.use_docked_mode, false);
|
|
|
|
WriteSettingGlobal(QStringLiteral("vibration_enabled"), Settings::values.vibration_enabled,
|
|
|
|
WriteSettingGlobal(QStringLiteral("vibration_enabled"), Settings::values.vibration_enabled,
|
|
|
|
true);
|
|
|
|
true);
|
|
|
|
WriteSettingGlobal(QStringLiteral("vibration_strength"), Settings::values.vibration_strength,
|
|
|
|
|
|
|
|
100);
|
|
|
|
|
|
|
|
WriteSettingGlobal(QStringLiteral("motion_enabled"), Settings::values.motion_enabled, true);
|
|
|
|
WriteSettingGlobal(QStringLiteral("motion_enabled"), Settings::values.motion_enabled, true);
|
|
|
|
WriteSetting(QStringLiteral("motion_device"),
|
|
|
|
WriteSetting(QStringLiteral("motion_device"),
|
|
|
|
QString::fromStdString(Settings::values.motion_device),
|
|
|
|
QString::fromStdString(Settings::values.motion_device),
|
|
|
|