diff --git a/data/MultiheadSetupDialog.ui b/data/MultiheadSetupDialog.ui index b3ae097..110ad5a 100644 --- a/data/MultiheadSetupDialog.ui +++ b/data/MultiheadSetupDialog.ui @@ -2,8 +2,7 @@ - - + True False @@ -46,35 +45,6 @@ 8 vertical 8 - - - False - end - - - _OK - True - True - True - True - True - image3 - True - - - False - True - 1 - - - - - False - True - end - 0 - - True @@ -85,7 +55,6 @@ - True False vertical @@ -330,6 +299,8 @@ 0 0 + 1 + 1 @@ -346,6 +317,8 @@ 0 1 + 1 + 1 @@ -360,6 +333,8 @@ 1 0 + 1 + 1 @@ -373,6 +348,8 @@ 1 1 + 1 + 1 @@ -517,6 +494,35 @@ False True + 0 + + + + + False + end + + + _OK + True + True + True + True + True + image3 + True + + + False + True + 1 + + + + + False + True + end 0 diff --git a/lightdm_gtk_greeter_settings/MonitorsGroup.py b/lightdm_gtk_greeter_settings/MonitorsGroup.py index 0354a06..9a50d61 100644 --- a/lightdm_gtk_greeter_settings/MonitorsGroup.py +++ b/lightdm_gtk_greeter_settings/MonitorsGroup.py @@ -40,7 +40,8 @@ super().__init__(widgets) self._widgets = helpers.WidgetsWrapper(widgets) self._groups = [] - self._adapters = None + self._adapters = {key: OptionGroup.OneToManyEntryAdapter() + for key, __ in self.EntriesSetup} self._dialog = None self._groups_wrapper = helpers.SimpleDictWrapper( @@ -58,9 +59,6 @@ for groupname in config: if not groupname.startswith(MonitorsGroup.GroupPrefix): continue - if not self._adapters: - self._adapters = {key: OptionGroup.OneToManyEntryAdapter() - for key, __ in self.EntriesSetup} monitor = groupname[len(MonitorsGroup.GroupPrefix):].strip() self._add_group(monitor, groupname, config)