From a7e36505e9265ce540a94cfac67d1ca0878a1e34 Mon Sep 17 00:00:00 2001 From: alessandro90 Date: Sat, 18 May 2019 21:44:46 +0200 Subject: [PATCH] Remove minor redundant code --- artemis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artemis.py b/artemis.py index ab8d190..67fd660 100644 --- a/artemis.py +++ b/artemis.py @@ -1032,7 +1032,7 @@ class Artemis(QMainWindow, Ui_MainWindow): @pyqtSlot() 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. w.setEnabled(toggled)