Multiple custom power curves 4460 (#4461)

In cases where this config was loaded and is being saved again, preserve the virtual power definition string.
This commit is contained in:
jeepingben
2024-03-24 20:34:39 -04:00
committed by GitHub
parent 28c9af8754
commit 65deb0f7fa
2 changed files with 2 additions and 2 deletions

View File

@@ -696,7 +696,7 @@ bool deviceModel::setData(const QModelIndex &index, const QVariant &value, int r
case 3 : // Profile
p.deviceProfile = value.toString();
break;
case 4 : // Profile
case 4 : // Virtual
p.postProcess = value.toInt();
break;
}

View File

@@ -169,7 +169,7 @@ DeviceConfigurations::writeConfig(QList<DeviceConfiguration> Configuration)
bool isPredefinedPostProcess = vptm.IsPredefinedVirtualPowerTrainerIndex(postProcess);
int postProcessStoreValue = postProcess;
QString s = "";
QString s = Configuration.at(i).virtualPowerDefinitionString;
if (!isPredefinedPostProcess) {
postProcessStoreValue = 0;