summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mir_app/src/menu_utils.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mir_app/src/menu_utils.cpp b/src/mir_app/src/menu_utils.cpp
index 075cd9ec76..17fdcaea62 100644
--- a/src/mir_app/src/menu_utils.cpp
+++ b/src/mir_app/src/menu_utils.cpp
@@ -867,7 +867,10 @@ static int sttReadOldItem(TMO_IntMenuItem *pmi, void *szModule)
// check if it visible
mir_snprintf(szSetting, "%s_visible", menuItemName);
- if (!db_get_b(NULL, (char*)szModule, szSetting, 1))
+ pmi->customVisible = db_get_b(NULL, (char*)szModule, szSetting, 1) != 0;
+ if (pmi->customVisible)
+ pmi->mi.flags &= ~CMIF_HIDDEN;
+ else
pmi->mi.flags |= CMIF_HIDDEN;
// mi.name.t