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:
parent
7e93418927
commit
4917445e2e
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue