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

@ -162,7 +162,7 @@ class QUnFrameWindow(resizableframeless):
if iter_context: if iter_context:
iter_res_status,iter_context_class=iter_context iter_res_status,iter_context_class=iter_context
if iter_res_status==3: 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()} self.saveiterclasspointer[iter_context_class]={'curr':self.translate_text.getcurrpointer()+len(text),'start':self.translate_text.getcurrpointer()}
else: else:
self.translate_text.deletebetween(self.saveiterclasspointer[iter_context_class]['start'],self.saveiterclasspointer[iter_context_class]['curr']) 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): if isinstance(res,types.GeneratorType):
def _iterget(): def _iterget():
rid=self.requestid rid=self.requestid
__callback('',3) for i,_res in enumerate(res):
for _res in res: if i==0:__callback('',3)
if self.requestid!=rid:break if self.requestid!=rid:break
__callback(_res,1) __callback(_res,1)
__callback('',2) __callback('',2)