no isable profiles till it works

This commit is contained in:
Dan Ballard 2022-12-14 16:14:58 -08:00
parent 4a11968567
commit 448900b48e
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ class _AddEditProfileViewState extends State<AddEditProfileView> {
// Enabled
Visibility(
visible: Provider.of<ProfileInfoState>(context).onion.isNotEmpty,
visible: Provider.of<ProfileInfoState>(context).onion.isNotEmpty && !Provider.of<ProfileInfoState>(context).enabled,
child: SwitchListTile(
title: Text(AppLocalizations.of(context)!.profileEnabled, style: TextStyle(color: Provider.of<Settings>(context).current().mainTextColor)),
subtitle: Text(AppLocalizations.of(context)!.profileEnabledDescription),