Skip to content

Commit

Permalink
Merge pull request #227 from Photon3009/main
Browse files Browse the repository at this point in the history
Fix: Close previous snackbar when switching profiles
  • Loading branch information
Pavel401 authored Dec 23, 2023
2 parents a3beb7a + f98dfb2 commit b972f3b
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 b972f3b

Please sign in to comment.