[Mod]AlgoSettingMonitor增加更新templateName

This commit is contained in:
vn.py 2018-06-10 21:13:21 +08:00
parent 893940de6f
commit 252e78996c

View File

@ -342,6 +342,7 @@ class AlgoSettingMonitor(QtWidgets.QTableWidget):
self.cellDict[settingName] = { self.cellDict[settingName] = {
'start': buttonStart, 'start': buttonStart,
'template': cellTemplateName,
'text': cellSettingText, 'text': cellSettingText,
'delete': buttonDelete 'delete': buttonDelete
} }
@ -349,6 +350,7 @@ class AlgoSettingMonitor(QtWidgets.QTableWidget):
else: else:
d = self.cellDict[settingName] d = self.cellDict[settingName]
d['start'].updateSetting(setting) d['start'].updateSetting(setting)
d['template'].setText(setting['templateName'])
d['text'].setText(self.generateText(setting)) d['text'].setText(self.generateText(setting))
d['delete'].updateSetting(setting) d['delete'].updateSetting(setting)