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
|
||||
# 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()
|
||||
# Background image file
|
||||
if self.config['background_image'] != '':
|
||||
|
@ -376,13 +382,6 @@ class PrefsEditor:
|
|||
widget = guiget('background_darkness_scale')
|
||||
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
|
||||
# Scrollbar position
|
||||
widget = guiget('scrollbar-position-combobox')
|
||||
|
|
Loading…
Reference in New Issue