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
This commit is contained in:
Christian Göttsche 2021-09-10 17:00:50 +02:00 committed by BenBE
parent 43ffdb0eda
commit dd88510dcd
1 changed files with 1 additions and 1 deletions

View File

@ -82,6 +82,6 @@ HeaderOptionsPanel* HeaderOptionsPanel_new(Settings* settings, ScreenManager* sc
for (int i = 0; i < LAST_HEADER_LAYOUT; i++) { for (int i = 0; i < LAST_HEADER_LAYOUT; i++) {
Panel_add(super, (Object*) CheckItem_newByVal(HeaderLayout_layouts[i].description, false)); 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; return this;
} }