mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
GameOfLife: Don't toggle cells on mouse move when placing patterns
Previously, it was very easy to inadvertently toggle cells when placing a pattern by dragging the mouse slightly.
This commit is contained in:
parent
6eaae726fa
commit
12adaac08d
3 changed files with 5 additions and 2 deletions
|
@ -71,7 +71,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
statusbar.segment(1).set_fixed_width(ceil(width));
|
||||
|
||||
auto show_statusbar_hint = [&]() {
|
||||
auto tip = board_widget->selected_pattern() ? pattern_place_tip : toggle_cells_tip;
|
||||
auto tip = board_widget.selected_pattern() ? pattern_place_tip : toggle_cells_tip;
|
||||
statusbar.segment(0).set_text(tip);
|
||||
};
|
||||
show_statusbar_hint();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue