mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix begin campaign button on reload.
This commit is contained in:
parent
8e6e1469d7
commit
3badda600d
@ -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:
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user