Fix handling of background_darkness changing. Closes LP #553276
This commit is contained in:
parent
4e892c0923
commit
dde412a53b
|
@ -545,9 +545,11 @@ class PrefsEditor:
|
|||
self.config['scrollbar_position'] = value
|
||||
self.config.save()
|
||||
|
||||
def on_darken_background_scale_change_value(self, widget):
|
||||
def on_darken_background_scale_change_value(self, widget, scroll, value):
|
||||
"""Background darkness setting changed"""
|
||||
self.config['background_darkness'] = widget.get_value()
|
||||
# FIXME: 'value' is a float with way too much precision. Round it off
|
||||
# to 1 significant digit, e.g. 0.9 not 0.89989888413241345
|
||||
self.config['background_darkness'] = value
|
||||
self.config.save()
|
||||
|
||||
def on_background_image_filechooser_file_set(self, widget):
|
||||
|
|
Loading…
Reference in New Issue