Skip to content

Commit

Permalink
Fix wrong crop_category_names for implements (#184)
Browse files Browse the repository at this point in the history
The last PR #181 was
missing these two changes
  • Loading branch information
pascalzauberzeug committed Sep 24, 2024
1 parent b9af332 commit 47e5d20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion field_friend/automations/implements/weeding_implement.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def _update_time_and_distance(self):

def settings_ui(self):
super().settings_ui()
ui.select(self.system.crop_category_names, label='cultivated crop', on_change=self.request_backup) \
ui.select(self.system.plant_locator.crop_category_names, label='cultivated crop', on_change=self.request_backup) \
.bind_value(self, 'cultivated_crop').props('clearable') \
.classes('w-40').tooltip('Set the cultivated crop which should be kept safe')
ui.number('Crop safety distance', step=0.001, min=0.001, max=0.05, format='%.3f', on_change=self.request_backup) \
Expand Down
2 changes: 1 addition & 1 deletion field_friend/interface/components/field_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(self, system: 'System', leaflet: leaflet_map) -> None:
self.field_provider = system.field_provider
self.odometer = system.odometer
self.gnss = system.gnss
self.cultivatable_crops = system.crop_category_names
self.cultivatable_crops = system.plant_locator.crop_category_names
self.leaflet_map = leaflet
self.tab: TabType = "Plants"
self.active_object: ActiveObject | None = None
Expand Down

0 comments on commit 47e5d20

Please sign in to comment.