fix disable end war button

This commit is contained in:
Maxime Réaux 2026-02-24 09:11:37 +01:00
parent 81626171c8
commit 31a2ebb9dc

View file

@ -101,7 +101,7 @@ class WarController:
)
)
self.app.view.display_war_participants(rows, objectives_for_display)
self.app.view.endCampaignBtn.setEnabled(not war.is_over)
self.app.view.endWarBtn.setEnabled(not war.is_over)
def _validate_war_inputs(self, name: str, year: int) -> bool:
if not name.strip():
@ -162,6 +162,7 @@ class WarController:
)
# TODO fix spent tokens on tie cancel
# TODO fix ignored campaign tie-breaks
def resolve_ties(
self, war: War, contexts: List[TieContext]
) -> Dict[str, Dict[str, bool]]: