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,
|
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,13 +3743,16 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
|||||||
onChanged: (value) =>
|
onChanged: (value) =>
|
||||||
service.setMapShowOtherNodes(value),
|
service.setMapShowOtherNodes(value),
|
||||||
),
|
),
|
||||||
SwitchListTile(
|
if (showOnlineFilters)
|
||||||
title: Text(sheetContext.l10n.map_showOnlineLinks),
|
SwitchListTile(
|
||||||
value: settings.mapShowOnlineLinks,
|
title: Text(
|
||||||
dense: true,
|
sheetContext.l10n.map_showOnlineLinks,
|
||||||
onChanged: (value) =>
|
),
|
||||||
service.setMapShowOnlineLinks(value),
|
value: settings.mapShowOnlineLinks,
|
||||||
),
|
dense: true,
|
||||||
|
onChanged: (value) =>
|
||||||
|
service.setMapShowOnlineLinks(value),
|
||||||
|
),
|
||||||
SectionHeader(sheetContext.l10n.map_markers),
|
SectionHeader(sheetContext.l10n.map_markers),
|
||||||
SwitchListTile(
|
SwitchListTile(
|
||||||
title: Text(sheetContext.l10n.map_showSharedMarkers),
|
title: Text(sheetContext.l10n.map_showSharedMarkers),
|
||||||
|
|||||||
Reference in new issue
Block a user