fix(settings): export string-list preferences after a cold start
Match the tolerant list predicate the import path already uses. The platform preference cache returns List<Object?> after a restart, so the exact List<String> pattern silently dropped tracker library filter ids and a restored profile resumed scrobbling libraries the user had excluded.
This commit is contained in:
@@ -195,7 +195,10 @@ class SettingsExportService {
|
||||
_typeInt when value is int => {'type': _typeInt, 'value': value},
|
||||
_typeDouble when value is double => {'type': _typeDouble, 'value': value},
|
||||
_typeString when value is String => {'type': _typeString, 'value': value},
|
||||
_typeStringList when value is List<String> => {'type': _typeStringList, 'value': value},
|
||||
_typeStringList when _isValidValue(_typeStringList, value) => {
|
||||
'type': _typeStringList,
|
||||
'value': (value! as List).cast<String>().toList(),
|
||||
},
|
||||
_ => null,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user