small addition, to not display option in local map filter.

This commit is contained in:
ericz committed 2026-11-01 15:06:02 +01:00
1 parent b82d5d6aab
commit 7baf29ca62
1 file changed
+6 -1
+6 -1
View File
@@ -3611,6 +3611,8 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
BuildContext context, BuildContext context,
AppSettingsService settingsService, AppSettingsService settingsService,
) { ) {
final showOnlineFilters =
context.read<UiViewStateService>().mapSource != MapSourceOption.local;
showMeshSheet( showMeshSheet(
context, context,
builder: (sheetContext) => StatefulBuilder( builder: (sheetContext) => StatefulBuilder(
@@ -3741,8 +3743,11 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
onChanged: (value) => onChanged: (value) =>
service.setMapShowOtherNodes(value), service.setMapShowOtherNodes(value),
), ),
if (showOnlineFilters)
SwitchListTile( SwitchListTile(
title: Text(sheetContext.l10n.map_showOnlineLinks), title: Text(
sheetContext.l10n.map_showOnlineLinks,
),
value: settings.mapShowOnlineLinks, value: settings.mapShowOnlineLinks,
dense: true, dense: true,
onChanged: (value) => onChanged: (value) =>