fix: close previous snackbar before opening new mode disabled snackbar

This commit is contained in:
ggurdin 2025-12-16 16:29:10 -05:00
parent a3e70d623d
commit 6132ab5258
No known key found for this signature in database
GPG key ID: A01CB41737CBB478

View file

@ -211,6 +211,7 @@ class SelectModeButtonsState extends State<SelectModeButtons> {
}
Future<void> modeDisabled() async {
ScaffoldMessenger.of(context).hideCurrentSnackBar();
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(L10n.of(context).modeDisabled),