hide blodeuwedd in settings if not supported
This commit is contained in:
parent
68c83f2c9a
commit
e0546eb502
|
@ -162,7 +162,9 @@ class _GlobalSettingsExperimentsViewState extends State<GlobalSettingsExperiment
|
|||
),
|
||||
]),
|
||||
),
|
||||
SwitchListTile(
|
||||
Visibility(
|
||||
visible: Provider.of<FlwtchState>(context, listen: false).cwtch.IsBlodeuweddSupported(),
|
||||
child: SwitchListTile(
|
||||
title: Text(AppLocalizations.of(context)!.blodeuweddExperimentEnable),
|
||||
subtitle: Provider.of<FlwtchState>(context, listen: false).cwtch.IsBlodeuweddSupported()
|
||||
? Text(AppLocalizations.of(context)!.blodeuweddDescription)
|
||||
|
@ -182,7 +184,7 @@ class _GlobalSettingsExperimentsViewState extends State<GlobalSettingsExperiment
|
|||
inactiveTrackColor: settings.theme.defaultButtonDisabledColor,
|
||||
inactiveThumbColor: settings.theme.defaultButtonDisabledColor,
|
||||
secondary: Icon(Icons.assistant, color: settings.current().mainTextColor),
|
||||
),
|
||||
)),
|
||||
Visibility(
|
||||
visible: Provider.of<FlwtchState>(context, listen: false).cwtch.IsBlodeuweddSupported() && settings.isExperimentEnabled(BlodeuweddExperiment),
|
||||
child: CwtchFolderPicker(
|
||||
|
|
Loading…
Reference in New Issue