1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00

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

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);
};