summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/HistoryStats/src/main.cpp')
-rw-r--r--plugins/HistoryStats/src/main.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/HistoryStats/src/main.cpp b/plugins/HistoryStats/src/main.cpp
index bad9b3ca5e..fceb2edb9b 100644
--- a/plugins/HistoryStats/src/main.cpp
+++ b/plugins/HistoryStats/src/main.cpp
@@ -305,14 +305,8 @@ static int EventPreBuildContactMenu(WPARAM hContact, LPARAM)
db.setContact(hContact);
db.setModule(con::ModHistoryStats);
- int menuState = db.readBool(con::SettExclude, false) ? CMIF_CHECKED : 0;
-
- // avoid collision with options page
- if (g_bExcludeLock)
- menuState |= CMIF_GRAYED;
-
- // set menu state
- Menu_ModifyItem(g_hMenuToggleExclude, NULL, INVALID_HANDLE_VALUE, menuState);
+ Menu_SetChecked(g_hMenuToggleExclude, db.readBool(con::SettExclude, false));
+ Menu_EnableItem(g_hMenuToggleExclude, !g_bExcludeLock); // avoid collision with options page
}
#if defined(HISTORYSTATS_HISTORYCOPY)