X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBCpuPage.py;h=49daf8c98df294e023bdd44897b446d602cf692e;hb=ec871ac76d4a666bcf35ff91733dc496a808bc83;hp=e9052e6773736e5ba57d2575c2cb637223de7f03;hpb=2be5d4598fdfee024f3929a110f5f93c751c355c;p=bertos.git diff --git a/wizard/BCpuPage.py b/wizard/BCpuPage.py index e9052e67..49daf8c9 100644 --- a/wizard/BCpuPage.py +++ b/wizard/BCpuPage.py @@ -95,6 +95,9 @@ class BCpuPage(BWizardPage): self.pageContent.cpuList.setSortingEnabled(True) self.pageContent.frequencyLabel.setVisible(False) self.pageContent.frequencySpinBox.setVisible(False) + preset_advanced = self.projectInfo("PRESET_ADVANCED_CONFIG") + if preset_advanced: + self.pageContent.cpuList.setEnabled(False) def connectSignals(self): """ @@ -158,7 +161,7 @@ class BCpuPage(BWizardPage): """ self.pageContent.cpuList.clear() self.pageContent.cpuList.setCurrentItem(None) - infos = bertos_utils.loadCpuInfos(self.project()) + infos = self.project().loadCpuInfos() tag_list = bertos_utils.getTagSet(infos) # Create, fill and store the dict with the tags tag_dict = {}