Fix begin campaign button on reload.

This commit is contained in:
Simon Clark 2021-06-26 22:38:19 +01:00
parent 6cc967742a
commit d18d6b2422
2 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,7 @@ from pathlib import Path
def _build_version_string() -> str:
components = ["4.0.0"]
components = ["4.0.1"]
build_number_path = Path("resources/buildnumber")
if build_number_path.exists():
with build_number_path.open("r") as build_number_file:

View File

@ -121,6 +121,7 @@ class QTopPanel(QFrame):
self.passTurnButton.setText("Pass Turn")
if game and game.turn == 0:
self.passTurnButton.setText("Begin Campaign")
self.proceedButton.setEnabled(False)
else:
self.proceedButton.setEnabled(True)