mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-01 10:04:12 +08:00
fix
This commit is contained in:
parent
0c763f1a83
commit
f9467176a8
@ -1316,6 +1316,8 @@ class TranslatorWindow(resizableframeless):
|
|||||||
def dodelayhide(self, delay):
|
def dodelayhide(self, delay):
|
||||||
enter_sig = uuid.uuid4()
|
enter_sig = uuid.uuid4()
|
||||||
self.enter_sig = enter_sig
|
self.enter_sig = enter_sig
|
||||||
|
if delay == -1:
|
||||||
|
return
|
||||||
while self.checkisentered():
|
while self.checkisentered():
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
self._isentered = False
|
self._isentered = False
|
||||||
@ -1332,8 +1334,6 @@ class TranslatorWindow(resizableframeless):
|
|||||||
def enterfunction(self, delay=None):
|
def enterfunction(self, delay=None):
|
||||||
self.titlebar.show()
|
self.titlebar.show()
|
||||||
self.set_color_transparency()
|
self.set_color_transparency()
|
||||||
if delay == -1:
|
|
||||||
return
|
|
||||||
self.dodelayhide(delay)
|
self.dodelayhide(delay)
|
||||||
|
|
||||||
def resizeEvent(self, e: QResizeEvent):
|
def resizeEvent(self, e: QResizeEvent):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user