Skip to content

Commit

Permalink
Fix tests (fr this time)
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanSarwar45 committed Dec 20, 2023
1 parent 584a266 commit 4b645ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/settings/types/setting.dart
Original file line number Diff line number Diff line change
Expand Up @@ -460,15 +460,15 @@ class DynamicSelectSetting<T extends ListItem> extends Setting<int> {
}) : super(name, description, defaultValue, onChange, enableConditions,
searchTags, isVisual) {
if (defaultValue != -1) {
_value = getIdAtIndex(defaultValue);
_value = defaultValue;
}
}

@override
DynamicSelectSetting<T> copy() {
return DynamicSelectSetting(name, optionsGetter,
onChange: onChange,
defaultValue: selectedIndex,
defaultValue: _value,
description: description,
enableConditions: enableConditions,
isVisual: isVisual,
Expand Down

0 comments on commit 4b645ad

Please sign in to comment.