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
1 changed files with 2 additions and 3 deletions

View File

@ -85,14 +85,13 @@ class ScreensTab(SettingsTab):
"""
Load the settings to populate the tab
"""
settings = Settings()
settings.beginGroup(self.settings_section)
Settings().beginGroup(self.settings_section)
self.screen_selection_widget.load()
# Load generic settings
self.display_on_monitor_check.setChecked(Settings().value('core/display on monitor'))
def save(self):
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
self.settings_form.register_post_process('config_screen_changed')