mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
issues/758
This commit is contained in:
parent
fb52fdd25b
commit
c473f6c602
@ -273,8 +273,12 @@ class autoinitdialog(QDialog):
|
|||||||
lineW.button(QDialogButtonBox.Ok).setText(_TR("确定"))
|
lineW.button(QDialogButtonBox.Ok).setText(_TR("确定"))
|
||||||
lineW.button(QDialogButtonBox.Cancel).setText(_TR("取消"))
|
lineW.button(QDialogButtonBox.Cancel).setText(_TR("取消"))
|
||||||
elif line["type"] == "lineedit":
|
elif line["type"] == "lineedit":
|
||||||
lineW = QLineEdit(dd[key])
|
try:
|
||||||
regist.append([dd, key, lineW.text])
|
lineW = QLineEdit(dd[key])
|
||||||
|
regist.append([dd, key, lineW.text])
|
||||||
|
except:
|
||||||
|
#被废弃的参数若为int型但失去argstype注释会崩溃,直接continue;
|
||||||
|
continue
|
||||||
elif line["type"] == "file":
|
elif line["type"] == "file":
|
||||||
e = QLineEdit(dd[key])
|
e = QLineEdit(dd[key])
|
||||||
regist.append([dd, key, e.text])
|
regist.append([dd, key, e.text])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user