Skip to content

Commit

Permalink
always save category order
Browse files Browse the repository at this point in the history
  • Loading branch information
cy33hc committed Apr 2, 2021
1 parent f0c7f7b commit 8b072bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ namespace CONFIG {
WriteString(cat->title, CONFIG_ALT_TITLE, cat->alt_title);
WriteInt(cat->title, CONFIG_GRID_ROWS, cat->rows);
WriteInt(cat->title, CONFIG_ASPECT_RATIO, cat->ratio);
WriteInt(cat->title, CONFIG_CATEGORY_ORDER, cat->order);
if (cat->id != FAVORITES && cat->id != HOMEBREWS)
{
WriteString(cat->title, CONFIG_TITLE_ID_PREFIXES, GetMultiValueString(cat->valid_title_ids).c_str());
Expand All @@ -394,7 +395,6 @@ namespace CONFIG {
WriteString(cat->title, CONFIG_ALT_CORES, GetMultiValueString(cat->alt_cores).c_str());
WriteBool(cat->title, CONFIG_BOOT_WITH_ALT_CORE, cat->boot_with_alt_core);
WriteInt(cat->title, CONFIG_ICON_TYPE, cat->icon_type);
WriteInt(cat->title, CONFIG_CATEGORY_ORDER, cat->order);
}
WriteIniFile(CONFIG_INI_FILE);
CloseIniFile();
Expand Down

0 comments on commit 8b072bd

Please sign in to comment.