diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index 0c64e64c..05a103a1 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -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')