mirror of
https://github.com/nqrduck/nqrduck-spectrometer.git
synced 2024-11-09 20:40:02 +00:00
Fixed bug with setting changes.
This commit is contained in:
parent
f0933c7705
commit
abe47cf64f
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class BaseSpectrometerView(ModuleView):
|
||||||
# Add a horizontal layout for the setting
|
# Add a horizontal layout for the setting
|
||||||
layout = QHBoxLayout()
|
layout = QHBoxLayout()
|
||||||
# Connect the editingFinished signal to the on_value_changed slot of the setting
|
# Connect the editingFinished signal to the on_value_changed slot of the setting
|
||||||
line_edit.editingFinished.connect(lambda x=line_edit: setting.on_value_changed(x.text()))
|
line_edit.editingFinished.connect(lambda x=line_edit, s=setting: s.on_value_changed(x.text()))
|
||||||
# Add the label and the line edit to the layout
|
# Add the label and the line edit to the layout
|
||||||
layout.addItem(spacer)
|
layout.addItem(spacer)
|
||||||
layout.addWidget(setting_label)
|
layout.addWidget(setting_label)
|
||||||
|
|
Loading…
Reference in a new issue