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

@ -105,7 +105,7 @@ class WarController:
self.app.navigation.selected_war_id, name, description
)
self.app.is_dirty = True
self.app.navigation.refresh(RefreshScope.WAR_DETAILS)
self.app.navigation.refresh(RefreshScope.CURRENT_SELECTION_DETAILS)
def edit_objective(self, objective_id: str) -> None:
obj = self.app.model.get_objective(objective_id)
@ -143,7 +143,7 @@ class WarController:
self.app.navigation.selected_war_id, player_id, faction
)
self.app.is_dirty = True
self.app.navigation.refresh(RefreshScope.WAR_DETAILS)
self.app.navigation.refresh(RefreshScope.CURRENT_SELECTION_DETAILS)
def edit_war_participant(self, participant_id: str) -> None:
war_part = self.app.model.get_war_participant(participant_id)