diff --git a/lib/settings/types/setting.dart b/lib/settings/types/setting.dart index 5353bfa7..184cf8d7 100644 --- a/lib/settings/types/setting.dart +++ b/lib/settings/types/setting.dart @@ -460,7 +460,7 @@ class DynamicSelectSetting extends Setting { }) : super(name, description, defaultValue, onChange, enableConditions, searchTags, isVisual) { if (defaultValue != -1) { - _value = getIdAtIndex(defaultValue); + _value = defaultValue; } } @@ -468,7 +468,7 @@ class DynamicSelectSetting extends Setting { DynamicSelectSetting copy() { return DynamicSelectSetting(name, optionsGetter, onChange: onChange, - defaultValue: selectedIndex, + defaultValue: _value, description: description, enableConditions: enableConditions, isVisual: isVisual,