immediately enable suspected locations when commanded

This commit is contained in:
stopflock
2025-10-24 16:52:14 -05:00
parent c8ae925dc1
commit 618d31d016

View File

@@ -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