This commit is contained in:
恍兮惚兮 2024-06-27 00:59:50 +08:00
parent a811daf895
commit 4131700cea

View File

@ -152,7 +152,10 @@ def checkthemesettingvisandapply_1(self, _dark):
self.btnthemedark.hide()
else:
self.btnthemedark.show()
try:
self.btnthemedark.clicked.disconnect()
except:
pass
self.btnthemedark.clicked.connect(self.darksetting)
else:
@ -162,7 +165,10 @@ def checkthemesettingvisandapply_1(self, _dark):
self.btnthemelight.hide()
else:
self.btnthemelight.show()
try:
self.btnthemelight.clicked.disconnect()
except:
pass
self.btnthemelight.clicked.connect(self.lightsetting)
except:
@ -177,7 +183,10 @@ def createbtnthemelight(self):
if not self.lightsetting:
self.btnthemelight.hide()
else:
try:
self.btnthemelight.clicked.disconnect()
except:
pass
self.btnthemelight.clicked.connect(self.lightsetting)
except:
pass
@ -194,7 +203,10 @@ def createbtnthemedark(self):
if not self.darksetting:
self.btnthemedark.hide()
else:
try:
self.btnthemedark.clicked.disconnect()
except:
pass
self.btnthemedark.clicked.connect(self.darksetting)
except:
pass