Skip to content

Commit

Permalink
Minesweeper: Make the SquareButtons non-checkable
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
awesomekling committed Aug 12, 2019
1 parent 7e93418 commit 4917445
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Games/Minesweeper/Field.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit 4917445

Please sign in to comment.