From 7875edddf5a607095fddbc6cea2125dc7cd8a413 Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Fri, 20 Sep 2024 12:56:36 -0400 Subject: [PATCH] Restore _getString helper --- lib/services/settings.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/services/settings.dart b/lib/services/settings.dart index 14f5bc3..d4d4742 100644 --- a/lib/services/settings.dart +++ b/lib/services/settings.dart @@ -37,6 +37,14 @@ class Settings { _set('logWrap', enabled); } + String _getString(String key, String defaultValue) { + final val = _settings[key]; + if (val is String) { + return val; + } + return defaultValue; + } + bool _getBool(String key, bool defaultValue) { final val = _settings[key]; if (val is bool) {