mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-01 10:04:12 +08:00
Update texthook.py
This commit is contained in:
parent
27f724ea9a
commit
a1616f9130
@ -210,7 +210,7 @@ class texthook(basetext ):
|
|||||||
self.useembed(addr,_ctx1,_ctx2,True)
|
self.useembed(addr,_ctx1,_ctx2,True)
|
||||||
def getembedtext(self,text,tp):
|
def getembedtext(self,text,tp):
|
||||||
if globalconfig['autorun']==False:
|
if globalconfig['autorun']==False:
|
||||||
self.embedcallback(text,0,text)
|
self.embedcallback(text,text)
|
||||||
return
|
return
|
||||||
if self.checkisusingembed(tp.addr,tp.ctx,tp.ctx2):
|
if self.checkisusingembed(tp.addr,tp.ctx,tp.ctx2):
|
||||||
self.newline.put((text,False, functools.partial(self.embedcallback,text),True))
|
self.newline.put((text,False, functools.partial(self.embedcallback,text),True))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user