fix propagate player update to participant views

This commit is contained in:
Maxime Réaux 2026-02-10 11:09:58 +01:00
parent 7792a76f8e
commit dd886802f4
6 changed files with 24 additions and 21 deletions

View file

@ -59,18 +59,18 @@ class NavigationController:
self.app.navigation.refresh_players_view()
case RefreshScope.WARS_TREE:
self.app.navigation.refresh_wars_view()
case RefreshScope.WAR_DETAILS:
case RefreshScope.CURRENT_SELECTION_DETAILS:
if self.selected_war_id:
self.app.view.show_details(ItemType.WAR)
self.app.wars._fill_war_details(self.selected_war_id)
case RefreshScope.CAMPAIGN_DETAILS:
if self.selected_campaign_id:
elif self.selected_campaign_id:
self.app.view.show_details(ItemType.CAMPAIGN)
self.app.campaigns._fill_campaign_details(self.selected_campaign_id)
case RefreshScope.ROUND_DETAILS:
if self.selected_round_id:
elif self.selected_round_id:
self.app.view.show_details(ItemType.ROUND)
self.app.rounds._fill_round_details(self.selected_round_id)
else:
self.app.view.show_details(None)
self.app.update_window_title()
def refresh_and_select(