From 2ffd83ebf5312a5fb9f6a68dad88e67e2c1acf27 Mon Sep 17 00:00:00 2001 From: Philip Abbey Date: Tue, 16 Apr 2024 22:58:53 +0100 Subject: [PATCH] When the cache is deactivated is now also cleared. --- source/HomeAssistantApp.mc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/HomeAssistantApp.mc b/source/HomeAssistantApp.mc index d5426c3..93a8681 100644 --- a/source/HomeAssistantApp.mc +++ b/source/HomeAssistantApp.mc @@ -209,7 +209,7 @@ class HomeAssistantApp extends Application.AppBase { WatchUi.requestUpdate(); } else { var menu = Storage.getValue("menu") as Lang.Dictionary; - if (menu != null and Settings.getClearCache()) { + if (menu != null and (Settings.getClearCache() || !Settings.getCacheConfig())) { Storage.deleteValue("menu"); menu = null; Settings.unsetClearCache();