This commit is contained in:
Dain Nilsson 2024-02-05 15:13:37 +01:00
commit 9b2297b27d
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8

View File

@ -77,13 +77,14 @@ class AccountDialog extends ConsumerWidget {
return renamed; return renamed;
}), }),
if (hasFeature(features.accountsDelete)) if (hasFeature(features.accountsDelete))
DeleteIntent: CallbackAction<DeleteIntent>(onInvoke: (intent) async { DeleteIntent<OathCredential>:
CallbackAction<DeleteIntent<OathCredential>>(
onInvoke: (intent) async {
final deleted = final deleted =
await (Actions.invoke(context, intent) as Future<dynamic>?); await (Actions.invoke(context, intent) as Future<dynamic>?);
// Pop the account dialog if deleted // Pop the account dialog if deleted
final withContext = ref.read(withContextProvider);
if (deleted == true) { if (deleted == true) {
await withContext((context) async { await ref.read(withContextProvider)((context) async {
Navigator.of(context).pop(); Navigator.of(context).pop();
}); });
} }