fix disable end war button
This commit is contained in:
parent
81626171c8
commit
31a2ebb9dc
1 changed files with 2 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ class WarController:
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
self.app.view.display_war_participants(rows, objectives_for_display)
|
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:
|
def _validate_war_inputs(self, name: str, year: int) -> bool:
|
||||||
if not name.strip():
|
if not name.strip():
|
||||||
|
|
@ -162,6 +162,7 @@ class WarController:
|
||||||
)
|
)
|
||||||
|
|
||||||
# TODO fix spent tokens on tie cancel
|
# TODO fix spent tokens on tie cancel
|
||||||
|
# TODO fix ignored campaign tie-breaks
|
||||||
def resolve_ties(
|
def resolve_ties(
|
||||||
self, war: War, contexts: List[TieContext]
|
self, war: War, contexts: List[TieContext]
|
||||||
) -> Dict[str, Dict[str, bool]]:
|
) -> Dict[str, Dict[str, bool]]:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue