Minesweeper: Make the SquareButtons non-checkable

We manage the checked state of these buttons manually in the code, and
we don't want the user to interfere with it, which would be possible if
we put them in checkable state.
This commit is contained in:
Andreas Kling 2019-08-12 18:51:23 +02:00
parent 7e93418927
commit 4917445e2e
Notes: sideshowbarker 2024-07-19 12:42:32 +09:00

View file

@ -230,7 +230,6 @@ void Field::reset()
square.label->set_icon(square.has_mine ? m_mine_bitmap : nullptr);
if (!square.button) {
square.button = new SquareButton(this);
square.button->set_checkable(true);
square.button->on_click = [this, &square](GButton&) {
on_square_clicked(square);
};