1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:47:45 +00:00

GameOfLife: Don't randomize cells on board resize

Loosing all game state for a simple resize of the board is quite
disappointing, so let's not do that. :^)
This commit is contained in:
Linus Groh 2021-05-16 21:43:03 +01:00 committed by Andreas Kling
parent 7dea3d41cb
commit d7c0370c57

View file

@ -58,7 +58,6 @@ int main(int argc, char** argv)
auto size_changed_function = [&] {
statusbar.set_text(click_tip);
board_widget.resize_board(rows_spinbox.value(), columns_spinbox.value());
board_widget.randomize_cells();
board_widget.update();
};