Skip to content

Commit

Permalink
Fix setting grid size to 0 crashing program
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Dec 7, 2023
1 parent df2b1c9 commit f65b9ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pages/dashboard_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ class _DashboardPageState extends State<DashboardPage> with WindowListener {

int? newGridSize = int.tryParse(gridSize);

if (newGridSize == null) {
if (newGridSize == null || newGridSize == 0) {
return;
}

Expand Down

0 comments on commit f65b9ee

Please sign in to comment.