From e84ea8c3830a95e429eb12480a6c9d8840fed6ce Mon Sep 17 00:00:00 2001 From: Armand <4831c0@proton.me> Date: Sat, 13 Sep 2025 13:06:18 +0200 Subject: [PATCH] home: only call setState on update if screen is mounted --- firka/lib/ui/phone/screens/home/home_screen.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firka/lib/ui/phone/screens/home/home_screen.dart b/firka/lib/ui/phone/screens/home/home_screen.dart index 603a1b8..eb3d72a 100644 --- a/firka/lib/ui/phone/screens/home/home_screen.dart +++ b/firka/lib/ui/phone/screens/home/home_screen.dart @@ -254,7 +254,7 @@ class _HomeScreenState extends FirkaState { } void settingsUpdateListener() { - setState(() {}); + if (mounted) setState(() {}); } Future _preloadImages() async {