small addition, to not display option in local map filter.
This commit is contained in:
1 parent
b82d5d6aab
commit
7baf29ca62
1 file changed
+12
-7
@@ -3611,6 +3611,8 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
||||
BuildContext context,
|
||||
AppSettingsService settingsService,
|
||||
) {
|
||||
final showOnlineFilters =
|
||||
context.read<UiViewStateService>().mapSource != MapSourceOption.local;
|
||||
showMeshSheet(
|
||||
context,
|
||||
builder: (sheetContext) => StatefulBuilder(
|
||||
@@ -3741,13 +3743,16 @@ class _MapScreenState extends State<MapScreen> 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),
|
||||
|
||||
Reference in new issue
Block a user