From 618d31d0168f0dcdf3fd51c9ee1d3b1cccf46898 Mon Sep 17 00:00:00 2001 From: stopflock Date: Fri, 24 Oct 2025 16:52:14 -0500 Subject: [PATCH] immediately enable suspected locations when commanded --- lib/services/suspected_location_service.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/services/suspected_location_service.dart b/lib/services/suspected_location_service.dart index b6c6213..2dbda32 100644 --- a/lib/services/suspected_location_service.dart +++ b/lib/services/suspected_location_service.dart @@ -55,9 +55,9 @@ class SuspectedLocationService { final prefs = await SharedPreferences.getInstance(); await prefs.setBool(_prefsKeyEnabled, enabled); - // If enabling for the first time and no data, fetch it + // If enabling for the first time and no data, fetch it in background if (enabled && !_cache.hasData) { - await _fetchData(); + _fetchData(); // Don't await - let it run in background so UI updates immediately } // If disabling, clear the cache