From df7adb1d3208320e2966cf6d27e5a9d962caf02e Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Mon, 10 Jul 2023 11:49:37 +0200 Subject: [PATCH] made SFX default panel, if it exists --- slic/gui/daqframe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/slic/gui/daqframe.py b/slic/gui/daqframe.py index 90f0db1b..f17e2a8f 100644 --- a/slic/gui/daqframe.py +++ b/slic/gui/daqframe.py @@ -42,7 +42,8 @@ class DAQFrame(wx.Frame): if show_run: notebook.AddPage(panel_run) if show_sfx: notebook.AddPage(panel_sfx) - if show_spec: notebook.SelectPage(panel_spec) + if show_sfx: notebook.SelectPage(panel_sfx) + elif show_spec: notebook.SelectPage(panel_spec) elif show_scan: notebook.SelectPage(panel_scan) elif show_static: notebook.SelectPage(panel_static) else: notebook.SelectPage(panel_config)