mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04:13 +08:00
length
This commit is contained in:
parent
515e856617
commit
13e39381ed
@ -125,7 +125,7 @@ class searchhookparam(QDialog):
|
||||
elif idx == 1: # 0默认
|
||||
# usestruct.codepage=self.codepage.value()
|
||||
usestruct.codepage = static_data["codepage_real"][self.codepagesave["spcp"]]
|
||||
usestruct.text = self.searchtext.text()
|
||||
usestruct.text = self.searchtext.text()[:30]
|
||||
if len(usestruct.text) < 4:
|
||||
getQMessageBox(self, "警告", "搜索文本过短!", True)
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user