From ee2a9f5e14111d9894b197fe22bb8b10e4a46389 Mon Sep 17 00:00:00 2001 From: Peppe289 Date: Wed, 7 Aug 2024 13:51:14 +0200 Subject: [PATCH] HomePage: make sure to report error on exception Signed-off-by: Peppe289 --- lib/gui/HomePage.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/gui/HomePage.dart b/lib/gui/HomePage.dart index aa484e7..26d17c4 100644 --- a/lib/gui/HomePage.dart +++ b/lib/gui/HomePage.dart @@ -25,10 +25,14 @@ class _BuildHomePage extends State { _selectedFrequencyMax = Frequency(FrequencyList().currfreqMax()); list = FrequencyList().availableFreq(); if (list.first.frequency == -1) { - isRave = false; + setState(() { + isRave = false; + }); } } catch (e) { - isRave = false; + setState(() { + isRave = false; + }); } }