diff --git a/PanGUI/main.py b/PanGUI/main.py index a80d88d..e86f62e 100644 --- a/PanGUI/main.py +++ b/PanGUI/main.py @@ -193,15 +193,19 @@ def setplotopts(self, q): # unwind path qpath = q.data()["path"] _opts = plotopts + _popts = self.preOpts[idx] if qpath: cpath = qpath.split("_") for k in cpath: _opts = _opts[k] + _popts = _popts[k] if isinstance(_opts, DPT.objects.ExclusiveOptions): if q.isChecked(): + _popts.select(_opts.selected) _opts.select(q.text()) elif q.isCheckable(): + _popts[q.text()] = _opts[q.text()] _opts[q.text()] = q.isChecked() elif not q.isCheckable() and q.menu() is None: # Text input text, okPressed = QtWidgets.QInputDialog.getText(self,q.text(),"", @@ -209,6 +213,7 @@ def setplotopts(self, q): str(q.data()["value"])) if okPressed: # unwind the path + _popts[q.text()] = _opts[q.text()] _opts[q.text()] = type(q.data()["value"])(text) if replotAll: