From f8cbe3c56009f1ac702c61c51d0586fe92ec7512 Mon Sep 17 00:00:00 2001 From: Mike Rosengrant Date: Tue, 24 Oct 2023 12:04:49 -0400 Subject: [PATCH] add check to reinitialize self.menu as MainMenu object --- plugin/RealtimeScoring.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/RealtimeScoring.py b/plugin/RealtimeScoring.py index 2204177..095c824 100644 --- a/plugin/RealtimeScoring.py +++ b/plugin/RealtimeScoring.py @@ -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()