Resolved #8739 - cannot 'undo' if you cannot change state

This commit is contained in:
Yair Morgenstern
2023-02-25 22:23:23 +02:00
parent 0144947bb7
commit 9acc84ff8e

View File

@ -119,7 +119,7 @@ class TechPolicyDiplomacyButtons(val worldScreen: WorldScreen) : Table(BaseScree
private fun updateUndoButton() {
// Don't show the undo button if there is no action to undo
if (worldScreen.gameInfo != worldScreen.preActionGameInfo) {
if (worldScreen.gameInfo != worldScreen.preActionGameInfo && worldScreen.canChangeState) {
undoButtonHolder.touchable = Touchable.enabled
undoButtonHolder.actor = undoButton
} else {