mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-01 10:04:12 +08:00
issues/694
This commit is contained in:
parent
6bbc284ca0
commit
4a09a23a7f
@ -122,10 +122,14 @@ class QUnFrameWindow(resizableframeless):
|
|||||||
_res = text[: globalconfig["maxoriginlength"]] + "……"
|
_res = text[: globalconfig["maxoriginlength"]] + "……"
|
||||||
else:
|
else:
|
||||||
_res = text
|
_res = text
|
||||||
if globalconfig["isshowhira"] and globalconfig["isshowrawtext"]:
|
if globalconfig["isshowrawtext"]:
|
||||||
self.showline(clear=clear, text=_res, hira=True, color=color)
|
hira = (
|
||||||
elif globalconfig["isshowrawtext"]:
|
globalconfig["isshowhira"]
|
||||||
self.showline(clear=clear, text=_res, color=color)
|
or globalconfig["usesearchword"]
|
||||||
|
or globalconfig["usecopyword"]
|
||||||
|
or globalconfig["show_fenci"]
|
||||||
|
)
|
||||||
|
self.showline(clear=clear, text=_res, hira=hira, color=color)
|
||||||
else:
|
else:
|
||||||
self.showline(clear=clear)
|
self.showline(clear=clear)
|
||||||
|
|
||||||
@ -266,11 +270,8 @@ class QUnFrameWindow(resizableframeless):
|
|||||||
self.translate_text.append(text, hira, origin)
|
self.translate_text.append(text, hira, origin)
|
||||||
if globalconfig["zitiyangshi"] == 3:
|
if globalconfig["zitiyangshi"] == 3:
|
||||||
self.translate_text.showyinyingtext(color)
|
self.translate_text.showyinyingtext(color)
|
||||||
if (
|
|
||||||
globalconfig["usesearchword"]
|
if hira:
|
||||||
or globalconfig["usecopyword"]
|
|
||||||
or globalconfig["show_fenci"]
|
|
||||||
) and hira:
|
|
||||||
|
|
||||||
def callback(word):
|
def callback(word):
|
||||||
if globalconfig["usewordorigin"] == False:
|
if globalconfig["usewordorigin"] == False:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user