Fixed a traceback when saving in the screentab.

This commit is contained in:
Tomas Groth 2019-01-27 21:01:02 +01:00
parent af41798128
commit 728dcfba78

View File

@ -85,14 +85,13 @@ class ScreensTab(SettingsTab):
""" """
Load the settings to populate the tab Load the settings to populate the tab
""" """
settings = Settings() Settings().beginGroup(self.settings_section)
settings.beginGroup(self.settings_section)
self.screen_selection_widget.load() self.screen_selection_widget.load()
# Load generic settings # Load generic settings
self.display_on_monitor_check.setChecked(Settings().value('core/display on monitor')) self.display_on_monitor_check.setChecked(Settings().value('core/display on monitor'))
def save(self): def save(self):
self.screen_selection_widget.save() self.screen_selection_widget.save()
settings.setValue('core/display on monitor', self.display_on_monitor_check.isChecked()) Settings().setValue('core/display on monitor', self.display_on_monitor_check.isChecked())
# On save update the screens as well # On save update the screens as well
self.settings_form.register_post_process('config_screen_changed') self.settings_form.register_post_process('config_screen_changed')