mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
fix
This commit is contained in:
parent
a811daf895
commit
4131700cea
@ -152,7 +152,10 @@ def checkthemesettingvisandapply_1(self, _dark):
|
|||||||
self.btnthemedark.hide()
|
self.btnthemedark.hide()
|
||||||
else:
|
else:
|
||||||
self.btnthemedark.show()
|
self.btnthemedark.show()
|
||||||
self.btnthemedark.clicked.disconnect()
|
try:
|
||||||
|
self.btnthemedark.clicked.disconnect()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
self.btnthemedark.clicked.connect(self.darksetting)
|
self.btnthemedark.clicked.connect(self.darksetting)
|
||||||
else:
|
else:
|
||||||
|
|
||||||
@ -162,7 +165,10 @@ def checkthemesettingvisandapply_1(self, _dark):
|
|||||||
self.btnthemelight.hide()
|
self.btnthemelight.hide()
|
||||||
else:
|
else:
|
||||||
self.btnthemelight.show()
|
self.btnthemelight.show()
|
||||||
self.btnthemelight.clicked.disconnect()
|
try:
|
||||||
|
self.btnthemelight.clicked.disconnect()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
self.btnthemelight.clicked.connect(self.lightsetting)
|
self.btnthemelight.clicked.connect(self.lightsetting)
|
||||||
|
|
||||||
except:
|
except:
|
||||||
@ -177,7 +183,10 @@ def createbtnthemelight(self):
|
|||||||
if not self.lightsetting:
|
if not self.lightsetting:
|
||||||
self.btnthemelight.hide()
|
self.btnthemelight.hide()
|
||||||
else:
|
else:
|
||||||
self.btnthemelight.clicked.disconnect()
|
try:
|
||||||
|
self.btnthemelight.clicked.disconnect()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
self.btnthemelight.clicked.connect(self.lightsetting)
|
self.btnthemelight.clicked.connect(self.lightsetting)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
@ -194,7 +203,10 @@ def createbtnthemedark(self):
|
|||||||
if not self.darksetting:
|
if not self.darksetting:
|
||||||
self.btnthemedark.hide()
|
self.btnthemedark.hide()
|
||||||
else:
|
else:
|
||||||
self.btnthemedark.clicked.disconnect()
|
try:
|
||||||
|
self.btnthemedark.clicked.disconnect()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
self.btnthemedark.clicked.connect(self.darksetting)
|
self.btnthemedark.clicked.connect(self.darksetting)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user