mirror of
https://github.com/nqrduck/nqrduck-spectrometer.git
synced 2025-01-02 13:48:07 +00:00
Fixed missing setting of value in SelectionSetting.
This commit is contained in:
parent
fc017eb943
commit
ba89c23017
1 changed files with 4 additions and 1 deletions
|
@ -205,6 +205,7 @@ class VisualBooleanSetting(VisualSetting):
|
|||
@value.setter
|
||||
def value(self, value):
|
||||
try:
|
||||
logger.debug(f"Setting {self.setting.name} to {value}")
|
||||
self.setting.value = bool(value)
|
||||
if self.widget:
|
||||
self.widget.setChecked(self.value)
|
||||
|
@ -261,8 +262,9 @@ class VisualSelectionSetting(VisualSetting):
|
|||
def value(self, value):
|
||||
try:
|
||||
if value in self.setting.options:
|
||||
self.setting.value
|
||||
self.setting.value = value
|
||||
if self.widget:
|
||||
logger.debug(f"Setting {self.setting.name} to {value}")
|
||||
self.widget.setCurrentText(value)
|
||||
self.settings_changed.emit()
|
||||
else:
|
||||
|
@ -296,6 +298,7 @@ class VisualSelectionSetting(VisualSetting):
|
|||
value (str): The new value of the setting.
|
||||
"""
|
||||
self.value = value
|
||||
logger.debug(f"Setting {self.setting.name} to {value}")
|
||||
self.settings_changed.emit()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue