update icon when coming from settings

This commit is contained in:
otsmr 2025-07-29 11:19:44 +02:00
parent d3e7a63f38
commit 2bde206a8f

View file

@ -185,13 +185,16 @@ class _ChatListViewState extends State<ChatListView> {
}, },
), ),
IconButton( IconButton(
onPressed: () { onPressed: () async {
Navigator.push( await Navigator.push(
context, context,
MaterialPageRoute( MaterialPageRoute(
builder: (context) => const SettingsMainView(), builder: (context) => const SettingsMainView(),
), ),
); );
_user = await getUser();
if (!mounted) return;
setState(() {});
}, },
icon: const FaIcon(FontAwesomeIcons.gear, size: 19), icon: const FaIcon(FontAwesomeIcons.gear, size: 19),
) )