various small fixups

This commit is contained in:
Henry Hiles 2026-09-22 15:53:37 -04:00
commit a2791a6717
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
4 changed files with 16 additions and 20 deletions

View file

@ -252,16 +252,14 @@ class SettingsSectionsController
final colorScheme = Theme.of(context).colorScheme;
return M3EButton.icon(
onPressed: () async {
Navigator.of(context)
.popUntil((route) => route.isFirst);
Navigator.of(context)
.popUntil((route) => route.isFirst);
await WidgetsBinding.instance.endOfFrame;
await ref
.watch(UnifiedPushController.provider.notifier)
.deregister()
.onError(showError);
await ref
.watch(ClientController.provider.notifier)
.logout();
.logout()
.onError(showError);
},
label: Text(title),
icon: Icon(icon),