mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-24 15:15:44 +00:00
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:
parent
43ffdb0eda
commit
dd88510dcd
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user