Set the background type before updating the background tab, so it's actually arranged correctly
This commit is contained in:
parent
055e6f837b
commit
9ef6122a97
|
@ -362,6 +362,12 @@ class PrefsEditor:
|
||||||
|
|
||||||
## Background tab
|
## Background tab
|
||||||
# Radio values
|
# Radio values
|
||||||
|
if self.config['background_type'] == 'solid':
|
||||||
|
guiget('solid-radiobutton').set_active(True)
|
||||||
|
elif self.config['background_type'] == 'image':
|
||||||
|
guiget('image-radiobutton').set_active(True)
|
||||||
|
elif self.config['background_type'] == 'transparent':
|
||||||
|
guiget('transparent-radiobutton').set_active(True)
|
||||||
self.update_background_tab()
|
self.update_background_tab()
|
||||||
# Background image file
|
# Background image file
|
||||||
if self.config['background_image'] != '':
|
if self.config['background_image'] != '':
|
||||||
|
@ -376,13 +382,6 @@ class PrefsEditor:
|
||||||
widget = guiget('background_darkness_scale')
|
widget = guiget('background_darkness_scale')
|
||||||
widget.set_value(float(self.config['background_darkness']))
|
widget.set_value(float(self.config['background_darkness']))
|
||||||
|
|
||||||
if self.config['background_type'] == 'solid':
|
|
||||||
guiget('solid-radiobutton').set_active(True)
|
|
||||||
elif self.config['background_type'] == 'image':
|
|
||||||
guiget('image-radiobutton').set_active(True)
|
|
||||||
elif self.config['background_type'] == 'transparent':
|
|
||||||
guiget('transparent-radiobutton').set_active(True)
|
|
||||||
|
|
||||||
## Scrolling tab
|
## Scrolling tab
|
||||||
# Scrollbar position
|
# Scrollbar position
|
||||||
widget = guiget('scrollbar-position-combobox')
|
widget = guiget('scrollbar-position-combobox')
|
||||||
|
|
Loading…
Reference in New Issue