From dd88510dcda32076135f49d88ce7b09f4421965b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Fri, 10 Sep 2021 17:00:50 +0200 Subject: 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 --- HeaderOptionsPanel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'HeaderOptionsPanel.c') 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; } -- cgit v1.2.3