mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
refa: subtitle
Closes #553 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -11,7 +11,7 @@ extension SubtitlePreferenceDesc on SubtitlePreference {
|
||||
|
||||
extension SubtitlePreferenceCode on SubtitlePreference {
|
||||
static final List<String> _codeList = ['off', 'on', 'withoutAi'];
|
||||
get code => _codeList[index];
|
||||
String get code => _codeList[index];
|
||||
|
||||
static SubtitlePreference? fromCode(String code) {
|
||||
final index = _codeList.indexOf(code);
|
||||
|
||||
Reference in New Issue
Block a user