From 5a7f7c59560681fb115b523c2d695eea8ea9ba47 Mon Sep 17 00:00:00 2001 From: qwint Date: Fri, 2 Aug 2024 18:13:09 -0500 Subject: [PATCH] removes dependencies on UI elements when running updateTracker --- worlds/tracker/TrackerClient.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/worlds/tracker/TrackerClient.py b/worlds/tracker/TrackerClient.py index 691e52923f1f..e2f910ff138c 100644 --- a/worlds/tracker/TrackerClient.py +++ b/worlds/tracker/TrackerClient.py @@ -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)