Removing timer for chests for gold pass players

This commit is contained in:
Vishal 2025-01-17 01:35:24 +05:30 committed by GitHub
parent 60ef633122
commit dcd6abc28c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -325,6 +325,7 @@ class ChestWindow(bui.MainWindow):
) )
# Time string. # Time string.
if chest.unlock_tokens != 0:
self._time_string_text = bui.textwidget( self._time_string_text = bui.textwidget(
parent=self._root_widget, parent=self._root_widget,
position=(self._width * 0.5, self._height - 85 + self._yoffs), position=(self._width * 0.5, self._height - 85 + self._yoffs),
@ -340,7 +341,9 @@ class ChestWindow(bui.MainWindow):
self._time_string_timer = bui.AppTimer( self._time_string_timer = bui.AppTimer(
1.0, 1.0,
repeat=True, repeat=True,
call=bui.WeakCall(self._update_time_display, chest.unlock_time), call=bui.WeakCall(
self._update_time_display, chest.unlock_time
),
) )
# Allow watching an ad IF the server tells us we can AND we have # Allow watching an ad IF the server tells us we can AND we have