mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04:13 +08:00
fix
This commit is contained in:
parent
29d9dd2a71
commit
7c25ad4c9d
@ -1232,6 +1232,7 @@ class MAINUI:
|
||||
winsharedutils.globalmessagelistener(self.messagecallback__)
|
||||
self.inittray()
|
||||
self.createsavegamedb()
|
||||
self.__count = 0
|
||||
|
||||
def openlink(self, file):
|
||||
if file.startswith("http") and checkisusingwine():
|
||||
@ -1242,7 +1243,9 @@ class MAINUI:
|
||||
def messagecallback(self, msg, param):
|
||||
if msg == 0:
|
||||
if globalconfig["darklight2"] == 0:
|
||||
self.commonstylebase.setstylesheetsignal.emit()
|
||||
self.__count += 1
|
||||
if self.__count % 2:
|
||||
self.commonstylebase.setstylesheetsignal.emit()
|
||||
elif msg == 1:
|
||||
if bool(param):
|
||||
windows.BringWindowToTop(int(self.translation_ui.winid))
|
||||
|
Loading…
x
Reference in New Issue
Block a user