From 1bdb552152c9c8411b579662dcbe2aa3d6d64501 Mon Sep 17 00:00:00 2001 From: SGCMarkus Date: Fri, 7 Jun 2024 12:34:38 +0200 Subject: [PATCH] astrodatagui: disable count flares button when clicked and re-enable when done --- main/astrodatagui/AstrodataGUI.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/astrodatagui/AstrodataGUI.py b/main/astrodatagui/AstrodataGUI.py index 88adcab..49f27a9 100644 --- a/main/astrodatagui/AstrodataGUI.py +++ b/main/astrodatagui/AstrodataGUI.py @@ -354,11 +354,13 @@ class AstrodataGUI(QtWidgets.QMainWindow): def btCountAllFlaresClickedDone(self, allFlaresDictList): self.calcAllFlaresThread = None + self.btCountAllFlaresClicked.setEnabled(True) self.AllFlaresWindow = FlareSummaryPlotGUI(allFlaresDictList) self.AllFlaresWindow.show() def btCountAllFlaresClicked(self): if(self.calcAllFlaresThread is None): + self.btCountAllFlaresClicked.setEnabled(False) allStarsDictList = pd.DataFrame(columns=["StarName", "SpType", "RotVel",