From f65b9ee3bbb9666df8e078cd324397319079edff Mon Sep 17 00:00:00 2001 From: Gold872 Date: Wed, 6 Dec 2023 22:40:26 -0500 Subject: [PATCH] Fix setting grid size to 0 crashing program --- lib/pages/dashboard_page.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pages/dashboard_page.dart b/lib/pages/dashboard_page.dart index 09c59f1..2cd1f1f 100644 --- a/lib/pages/dashboard_page.dart +++ b/lib/pages/dashboard_page.dart @@ -833,7 +833,7 @@ class _DashboardPageState extends State with WindowListener { int? newGridSize = int.tryParse(gridSize); - if (newGridSize == null) { + if (newGridSize == null || newGridSize == 0) { return; }