mirror of
				https://github.com/house-of-abbey/GarminHomeAssistant.git
				synced 2025-11-03 08:28:14 +00:00 
			
		
		
		
	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:
		@@ -209,7 +209,7 @@ class HomeAssistantApp extends Application.AppBase {
 | 
				
			|||||||
            WatchUi.requestUpdate();
 | 
					            WatchUi.requestUpdate();
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            var menu = Storage.getValue("menu") as Lang.Dictionary;
 | 
					            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");
 | 
					                Storage.deleteValue("menu");
 | 
				
			||||||
                menu = null;
 | 
					                menu = null;
 | 
				
			||||||
                Settings.unsetClearCache();
 | 
					                Settings.unsetClearCache();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user