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:
commit
a8ac92d49f
1 changed files with 1 additions and 0 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue