[Fix]Close #1427
This commit is contained in:
parent
bfb5e1ea42
commit
c282ab13f9
@ -450,7 +450,16 @@ class SettingEditor(QtWidgets.QDialog):
|
||||
|
||||
for name, tp in self.edits.items():
|
||||
edit, type_ = tp
|
||||
value = type_(edit.text())
|
||||
value_text = edit.text()
|
||||
|
||||
if type_ == bool:
|
||||
if value_text == "True":
|
||||
value = True
|
||||
else:
|
||||
value = False
|
||||
else:
|
||||
value = type_(value_text)
|
||||
|
||||
setting[name] = value
|
||||
|
||||
return setting
|
||||
|
Loading…
Reference in New Issue
Block a user