Skip to content

Commit

Permalink
fadeout undo button if nothing to undo
Browse files Browse the repository at this point in the history
  • Loading branch information
griffi-gh committed Oct 16, 2024
1 parent c43d873 commit 400430c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/src/game-gui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2396,6 +2396,7 @@ game::refresh_widgets()
}

this->wdg_undo->add(); // XXX griffi-gh: Is this the right place?
this->wdg_undo->faded = undo.amount() == 0;
}

if ((this->state.sandbox || this->state.test_playing || W->is_paused() || W->is_puzzle()) && (W->level.type != LCAT_ADVENTURE || W->is_paused())) {
Expand Down

0 comments on commit 400430c

Please sign in to comment.