mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-10 07:48:31 +07:00
Resolved #8739 - cannot 'undo' if you cannot change state
This commit is contained in:
@ -119,7 +119,7 @@ class TechPolicyDiplomacyButtons(val worldScreen: WorldScreen) : Table(BaseScree
|
|||||||
|
|
||||||
private fun updateUndoButton() {
|
private fun updateUndoButton() {
|
||||||
// Don't show the undo button if there is no action to undo
|
// 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.touchable = Touchable.enabled
|
||||||
undoButtonHolder.actor = undoButton
|
undoButtonHolder.actor = undoButton
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user