diff options
Diffstat (limited to 'plugins/StatusManager')
-rw-r--r-- | plugins/StatusManager/src/stdafx.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/StatusManager/src/stdafx.h b/plugins/StatusManager/src/stdafx.h index fcd8d0d745..f82e4ae86a 100644 --- a/plugins/StatusManager/src/stdafx.h +++ b/plugins/StatusManager/src/stdafx.h @@ -37,9 +37,14 @@ extern HINSTANCE hInst; static BYTE IsSubPluginEnabled(const char* name) { + // Check if this plugin was disabled as separate dll + CMStringA dllName(FORMAT, "%s.dll", name); + dllName.MakeLower(); + bool dllEnabled = !db_get_b(NULL, "PluginDisable", dllName); + char setting[128]; mir_snprintf(setting, "%s_enabled", name); - return db_get_b(NULL, MODULENAME, setting, 1); + return db_get_b(NULL, MODULENAME, setting, dllEnabled ? 1 : 0); } class CSubPluginsOptionsDlg : CPluginDlgBase |