From 4b9a1bb9c282f9ef124ceee7f1f87910219be8e1 Mon Sep 17 00:00:00 2001 From: SGCMarkus Date: Mon, 18 Mar 2024 10:08:46 +0100 Subject: [PATCH] astrodatagui: disable plot options by default enable then when the first section/target table id was selected --- main/astrodatagui/AstrodataGUI.py | 1 + main/astrodatagui/astrodatagui.ui | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/main/astrodatagui/AstrodataGUI.py b/main/astrodatagui/AstrodataGUI.py index c66d963..6e3dbac 100644 --- a/main/astrodatagui/AstrodataGUI.py +++ b/main/astrodatagui/AstrodataGUI.py @@ -160,6 +160,7 @@ class AstrodataGUI(QtWidgets.QMainWindow): self.updateStarAltNames(altNames) def sequenceSelected(self, item): + self.gbPlotOptions.setEnabled(True) seqText = item.text().split(" - ") mainName = self.listDownloaded.currentItem().text() source = seqText[0] diff --git a/main/astrodatagui/astrodatagui.ui b/main/astrodatagui/astrodatagui.ui index e20f580..4f26647 100644 --- a/main/astrodatagui/astrodatagui.ui +++ b/main/astrodatagui/astrodatagui.ui @@ -6,7 +6,7 @@ 0 0 - 1612 + 1658 1043 @@ -218,7 +218,10 @@ - + + + false + 0 @@ -1004,7 +1007,7 @@ 0 0 - 1612 + 1658 21