diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-09-10 17:00:50 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-09-11 00:06:41 +0200 |
commit | dd88510dcda32076135f49d88ce7b09f4421965b (patch) | |
tree | cfb6d4cba2b7dc6a7a5c13d3a170fb69c4e94246 /HeaderOptionsPanel.c | |
parent | 43ffdb0edabd44fabd044012edc6a0189b86b2e5 (diff) |
HeaderOptionsPanel: select the current not saved option
Select the current active header layout, not the current saved layout
from the settings, as the value gets only saved back from the active
header to settings on closing the setup menu.
Closes: #785
Diffstat (limited to 'HeaderOptionsPanel.c')
-rw-r--r-- | HeaderOptionsPanel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/HeaderOptionsPanel.c b/HeaderOptionsPanel.c index 9edc6d22..701f6d60 100644 --- a/HeaderOptionsPanel.c +++ b/HeaderOptionsPanel.c @@ -82,6 +82,6 @@ HeaderOptionsPanel* HeaderOptionsPanel_new(Settings* settings, ScreenManager* sc for (int i = 0; i < LAST_HEADER_LAYOUT; i++) { Panel_add(super, (Object*) CheckItem_newByVal(HeaderLayout_layouts[i].description, false)); } - CheckItem_set((CheckItem*)Panel_get(super, settings->hLayout), true); + CheckItem_set((CheckItem*)Panel_get(super, scr->header->headerLayout), true); return this; } |