Merge pull request #4862 from pangeachat/4855-disabled-learning-tools-popup-can-be-spammed

fix: close previous snackbar before opening new mode disabled snackbar
This commit is contained in:
ggurdin 2025-12-16 16:29:39 -05:00 committed by GitHub
commit a8ac92d49f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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),