Skip to content

Commit

Permalink
handle edge case of 1 system routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Numerlor committed May 11, 2024
1 parent ac3dca7 commit 69d7892
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion auto_neutron/windows/new_route_window_tabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ def _update_saved_route_text(self) -> None:
self._loaded_route.entries[0].system
)
self.location_label.text = _("Saved location: {}").format(
self._loaded_route.entries[settings.General.last_route_index].system
self._loaded_route.entries[
max(settings.General.last_route_index, 0)
].system
)
# NOTE: destination system
self.destination_label.text = _("Destination: {}").format(
Expand Down

0 comments on commit 69d7892

Please sign in to comment.