self.folderactive.isChecked isn’t a boolean, it’s a method – which, in a boolean context, will always evaluate to True. If you want the state of the checkbox, just invoke the method:
if self.folderactive.isChecked():
...
else:
...
self.folderactive.isChecked isn’t a boolean, it’s a method – which, in a boolean context, will always evaluate to True. If you want the state of the checkbox, just invoke the method:
if self.folderactive.isChecked():
...
else:
...