Display AI Scribe togge in Preference

This commit is contained in:
Dat H. Pham
2025-12-19 10:41:06 +07:00
committed by Dat H. Pham
parent 9a46f6c663
commit 3c20c005f6
6 changed files with 44 additions and 2 deletions
@@ -72,7 +72,12 @@ class PreferencesView extends GetWidget<PreferencesController> with AppLoaderMix
if (localSettingOption.configs.isNotEmpty)
...PreferencesOptionType.values.where(
(optionType) => optionType.isLocal,
),
).where((optionType) {
if (optionType == PreferencesOptionType.aiScribe) {
return controller.isAIScribeAvailable;
}
return true;
}),
];
return Expanded(