From e23e9cc9c0a490596d91f95d811b2dfab8a352bd Mon Sep 17 00:00:00 2001 From: jupfi Date: Sun, 2 Jun 2024 20:31:22 +0200 Subject: [PATCH] Processing suffix attribute. --- src/nqrduck_spectrometer/visual_settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nqrduck_spectrometer/visual_settings.py b/src/nqrduck_spectrometer/visual_settings.py index dce3799..0210ce3 100644 --- a/src/nqrduck_spectrometer/visual_settings.py +++ b/src/nqrduck_spectrometer/visual_settings.py @@ -62,6 +62,7 @@ class VisualFloatSetting(VisualSetting): max_value=setting.max_value, slider=setting.slider, double_box=True, + suffix=setting.suffix, ) self.widget.spin_box.setValue(setting.default) self.spin_box = True @@ -123,7 +124,7 @@ class VisualIntSetting(VisualSetting): min_value=setting.min_value, max_value=setting.max_value, slider=setting.slider, - double_box=True, + double_box=False, ) self.spin_box = True self.widget.spin_box.setValue(setting.default)