fix: Button not waiting for refresh

This commit is contained in:
PartyDonut 2025-08-14 22:17:16 +02:00
parent 88b313a970
commit fc8a0e153b

View file

@ -51,8 +51,8 @@ class _SelectableIconButtonState extends ConsumerState<SelectableIconButton> {
} catch (e) { } catch (e) {
log(e.toString()); log(e.toString());
} finally { } finally {
setState(() => loading = false);
if (context.mounted) await context.refreshData(); if (context.mounted) await context.refreshData();
setState(() => loading = false);
} }
}, },
child: Padding( child: Padding(