Skip to content

Commit

Permalink
add check to reinitialize self.menu as MainMenu object
Browse files Browse the repository at this point in the history
  • Loading branch information
mjrosengrant committed Oct 24, 2023
1 parent 7f70380 commit f8cbe3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugin/RealtimeScoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,4 +338,7 @@ def on_advanced_settings(self):
async def on_complex_list_changed(self):
comp_list = await self.request_complex_list()
self.complex_cache = await self.request_complexes([cmp.index for cmp in comp_list])
if not isinstance(self.menu, MainMenu):
Logs.warning("self.menu somehow reverted back to default value. Reinitializing as MainMenu.")
self.menu = MainMenu(self)
await self.menu.render()

0 comments on commit f8cbe3c

Please sign in to comment.