Skip to content

Commit

Permalink
removes dependencies on UI elements when running updateTracker
Browse files Browse the repository at this point in the history
  • Loading branch information
qwint committed Aug 2, 2024
1 parent 02c9537 commit 5a7f7c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions worlds/tracker/TrackerClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,10 @@ def updateTracker(ctx: TrackerGameContext):
pass
events = [location.item.name for location in state.events if location.player == ctx.player_id]

ctx.tracker_page.refresh_from_data()
if ctx.tracker_page:
ctx.tracker_page.refresh_from_data()
ctx.locations_available = locations
if f"_read_hints_{ctx.team}_{ctx.slot}" in ctx.stored_data:
if ctx.ui and f"_read_hints_{ctx.team}_{ctx.slot}" in ctx.stored_data:
ctx.ui.update_hints()
if ctx.update_callback is not None:
ctx.update_callback(callback_list)
Expand Down

0 comments on commit 5a7f7c5

Please sign in to comment.