fix context mounted check

This commit is contained in:
ericz committed 2026-08-04 17:38:17 +02:00
1 parent 8cd7016cba
commit c92415a0ff
1 file changed
+1 -1
+1 -1
View File
@@ -1265,7 +1265,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
autoAddSensor,
overwriteOldest,
);
if (!mounted) return;
if (!context.mounted) return;
Navigator.pop(context);
},
child: Text(l10n.common_save),