Skip to content

Commit

Permalink
Fix: Close previous snackbar when switching profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Photon3009 committed Dec 22, 2023
1 parent a3beb7a commit f98dfb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/widgets/profilefunctions/selectprofile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ class SelectProfileListTile extends StatelessWidget {
groupValue: selectedUuid,
onChanged: (_) {
select();
ScaffoldMessenger.of(context).hideCurrentSnackBar();
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
content: Text('Switched to Profile ${alias ?? uuid}'),
));
Expand Down

0 comments on commit f98dfb2

Please sign in to comment.