mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +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
Notes:
sideshowbarker
2024-07-19 12:42:32 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/4917445e2e1
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…
Reference in a new issue