From 604e601d6be88e9773cdf9548bda8043d177267b Mon Sep 17 00:00:00 2001 From: duplo Date: Tue, 25 Aug 2009 13:28:23 +0000 Subject: [PATCH] Set as enabled the selected modules in the editing pages git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2781 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/bertos_utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index b57801a0..44911e5c 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -80,6 +80,10 @@ def loadBertosProject(project_file): tag_dict[tag] = False project_info.setInfo("ALL_CPU_TAGS", tag_dict) loadModuleData(project_info, True) + modules = project_info.info("MODULES") + for module, information in modules.items(): + information["enabled"] = module in project_data["ENABLED_MODULES"] + project_info.setInfo("MODULES", modules) return project_info def projectFileGenerator(project_info): -- 2.25.1