When the cache is deactivated is now also cleared.

This commit is contained in:
Philip Abbey
2024-04-16 22:58:53 +01:00
parent 48b7e7efe5
commit 2ffd83ebf5

View File

@ -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();