mirror of
https://github.com/nqrduck/nqrduck-spectrometer.git
synced 2024-11-08 12:00:02 +00:00
Added default value to description (if it exists).
This commit is contained in:
parent
bfdc4925df
commit
7d5debe9b2
1 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,8 @@ class Setting(QObject):
|
|||
self.description = description
|
||||
if default is not None:
|
||||
self.value = default
|
||||
# Update the description with the default value
|
||||
self.description += f"\n (Default: {default})"
|
||||
|
||||
# This can be overridden by subclasses
|
||||
self.widget = self.get_widget()
|
||||
|
|
Loading…
Reference in a new issue