Remove minor redundant code

This commit is contained in:
alessandro90
2019-05-18 21:44:46 +02:00
parent 567dac6397
commit a7e36505e9

View File

@@ -1032,7 +1032,7 @@ class Artemis(QMainWindow, Ui_MainWindow):
@pyqtSlot() @pyqtSlot()
def activate_if_toggled(self, radio_btn, *widgets): def activate_if_toggled(self, radio_btn, *widgets):
toggled = True if radio_btn.isChecked() else False toggled = radio_btn.isChecked()
for w in widgets[:-1]: # Neglect the bool coming from the emitted signal. for w in widgets[:-1]: # Neglect the bool coming from the emitted signal.
w.setEnabled(toggled) w.setEnabled(toggled)