kvui: abstract away client tab additions #3950

This commit is contained in:
Silvris
2024-09-22 09:24:14 -05:00
committed by GitHub
parent 99c02a3eb3
commit f7ec3d7508
3 changed files with 12 additions and 10 deletions

View File

@@ -267,9 +267,7 @@ class WargrooveContext(CommonContext):
def build(self):
container = super().build()
panel = TabbedPanelItem(text="Wargroove")
panel.content = self.build_tracker()
self.tabs.add_widget(panel)
self.add_client_tab("Wargroove", self.build_tracker())
return container
def build_tracker(self) -> TrackerLayout: