mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04:13 +08:00
issues/561
This commit is contained in:
parent
3f080e5f44
commit
cafae88f43
@ -156,13 +156,13 @@ class QUnFrameWindow(resizableframeless):
|
||||
self.translate_text.mergeCurrentCharFormat( color, globalconfig['miaobianwidth'])
|
||||
elif globalconfig['zitiyangshi'] ==0:
|
||||
self.translate_text.simplecharformat(color)
|
||||
elif globalconfig['zitiyangshi'] ==3:
|
||||
elif globalconfig['zitiyangshi'] ==3:
|
||||
self.translate_text.simplecharformat(color)
|
||||
|
||||
if iter_context:
|
||||
iter_res_status,iter_context_class=iter_context
|
||||
if iter_res_status==3:
|
||||
self.translate_text.append(text,hira,origin)
|
||||
self.translate_text.append(' ',hira,origin)
|
||||
self.saveiterclasspointer[iter_context_class]={'curr':self.translate_text.getcurrpointer()+len(text),'start':self.translate_text.getcurrpointer()}
|
||||
else:
|
||||
self.translate_text.deletebetween(self.saveiterclasspointer[iter_context_class]['start'],self.saveiterclasspointer[iter_context_class]['curr'])
|
||||
|
@ -276,8 +276,8 @@ class basetrans(commonbase):
|
||||
if isinstance(res,types.GeneratorType):
|
||||
def _iterget():
|
||||
rid=self.requestid
|
||||
__callback('',3)
|
||||
for _res in res:
|
||||
for i,_res in enumerate(res):
|
||||
if i==0:__callback('',3)
|
||||
if self.requestid!=rid:break
|
||||
__callback(_res,1)
|
||||
__callback('',2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user