From 84d337921577a8cdca8dae17ced6e2967aa4596f Mon Sep 17 00:00:00 2001 From: iakmds <111225446+iakmds@users.noreply.github.com> Date: Wed, 8 Mar 2023 11:52:37 +0100 Subject: [PATCH] fix(RecentlyOpenedSites): Empty list by default --- lib/src/utils/preferences.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/utils/preferences.dart b/lib/src/utils/preferences.dart index 3ba45757..3f065084 100644 --- a/lib/src/utils/preferences.dart +++ b/lib/src/utils/preferences.dart @@ -157,8 +157,8 @@ class Preferences { } static List getRecentSitePaths() { - List strToList = json.decode( - getPreferencesEntry(prefRecentSitePaths) ?? json.encode(['none'])); + List strToList = json + .decode(getPreferencesEntry(prefRecentSitePaths) ?? json.encode([])); return strToList; }