From 7baf29ca628f4fe17c87abc050b4610188ef59b3 Mon Sep 17 00:00:00 2001 From: ericz Date: Sun, 1 Nov 2026 15:06:02 +0100 Subject: [PATCH] small addition, to not display option in local map filter. --- lib/screens/map_screen.dart | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/lib/screens/map_screen.dart b/lib/screens/map_screen.dart index ba83baaf..03921477 100644 --- a/lib/screens/map_screen.dart +++ b/lib/screens/map_screen.dart @@ -3611,6 +3611,8 @@ class _MapScreenState extends State with DisconnectNavigationMixin { BuildContext context, AppSettingsService settingsService, ) { + final showOnlineFilters = + context.read().mapSource != MapSourceOption.local; showMeshSheet( context, builder: (sheetContext) => StatefulBuilder( @@ -3741,13 +3743,16 @@ class _MapScreenState extends State with DisconnectNavigationMixin { onChanged: (value) => service.setMapShowOtherNodes(value), ), - SwitchListTile( - title: Text(sheetContext.l10n.map_showOnlineLinks), - value: settings.mapShowOnlineLinks, - dense: true, - onChanged: (value) => - service.setMapShowOnlineLinks(value), - ), + if (showOnlineFilters) + SwitchListTile( + title: Text( + sheetContext.l10n.map_showOnlineLinks, + ), + value: settings.mapShowOnlineLinks, + dense: true, + onChanged: (value) => + service.setMapShowOnlineLinks(value), + ), SectionHeader(sheetContext.l10n.map_markers), SwitchListTile( title: Text(sheetContext.l10n.map_showSharedMarkers),