Merge pull request #139 from house-of-abbey/138-cached-menu-will-still-be-used-even-if-the-setting-is-deactivated

When the cache is deactivated is now also cleared.
This commit is contained in:
Philip Abbey
2024-04-17 07:56:49 +01:00
committed by GitHub

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