Update translatorUI.py

This commit is contained in:
恍兮惚兮 2024-03-07 13:37:39 +08:00
parent e8d8c6cd82
commit dec300b940

View File

@ -165,10 +165,11 @@ class QUnFrameWindow(resizableframeless):
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.document.blockSignals(True)
self.translate_text.deletebetween(self.saveiterclasspointer[iter_context_class]['start'],self.saveiterclasspointer[iter_context_class]['curr'])
self.translate_text.insertatpointer(self.saveiterclasspointer[iter_context_class]['start'],text)
self.saveiterclasspointer[iter_context_class]['curr']=self.translate_text.getcurrpointer()
self.document.blockSignals(False)
if globalconfig['zitiyangshi'] ==3:
self.translate_text.showyinyingtext2(color,iter_context_class,self.saveiterclasspointer[iter_context_class]['start'],text)
return