issues/561

This commit is contained in:
恍兮惚兮 2024-03-07 01:15:27 +08:00
parent 3f080e5f44
commit cafae88f43
2 changed files with 4 additions and 4 deletions

View File

@ -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'])

View File

@ -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)