Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gymnast86 committed Sep 2, 2024
1 parent 8f2e366 commit 439decb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gui/components/tracker_entrance_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,22 +62,22 @@ def update_text(self, recent_search_: Search | None = None) -> None:
self.recent_search = recent_search_

# Take the name of the connected area to start (or just "?" if it isn't connected)
connected_area_name = self.entrance.connected_area.name if self.entrance.connected_area else "?"
connected_area_name = (
self.entrance.connected_area.name if self.entrance.connected_area else "?"
)
# If this entrance has a replacement, then use the second part of the replacement's
# original name (this takes into account undecoupled double door names)
if self.entrance.replaces:
connected_area_name = self.entrance.replaces.original_name.split(" -> ")[1]

original_parent, original_connected = self.entrance.original_name.split(" -> ")
first_part = (
f"{original_parent} to "
if self.entrance.parent_area.hard_assigned_region != self.parent_area_name
or self.show_full_connection
else ""
)
self.setText(
f"{first_part}{original_connected} -> {connected_area_name}"
)
self.setText(f"{first_part}{original_connected} -> {connected_area_name}")

self.update_color(recent_search_)

Expand Down

0 comments on commit 439decb

Please sign in to comment.