diff options
author | George Hazan <ghazan@miranda.im> | 2021-01-19 21:14:47 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-01-19 21:14:47 +0300 |
commit | 8fb695ee9ab7987b58fb3f5ead668d21b56da230 (patch) | |
tree | 6855b9e974fcf7e6aaabb9206916136bf01d2113 /src/mir_app | |
parent | da6e2ad2e47bafed517660f496afd1e0bba274ec (diff) |
fixes #2695 (После установки любого драйвера базы через апдейтер, у него есть галка для отключения)
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/pluginopts.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/mir_app/src/pluginopts.cpp b/src/mir_app/src/pluginopts.cpp index e558c71b6d..1236f28ed9 100644 --- a/src/mir_app/src/pluginopts.cpp +++ b/src/mir_app/src/pluginopts.cpp @@ -325,9 +325,15 @@ public: LoadPluginDynamically(it);
// set checkboxes for all loaded plugins
- for (auto &it : arPluginList)
- if (isPluginOnWhiteList(it->fileName) && it->hInst)
- m_plugList.SetItemState(it->iRow, (it->flags & STATIC_PLUGIN) ? 0x3000 : 0x2000, LVIS_STATEIMAGEMASK);
+ for (auto &it : arPluginList) {
+ if (!isPluginOnWhiteList(it->fileName))
+ continue;
+
+ if (it->flags & STATIC_PLUGIN)
+ m_plugList.SetItemState(it->iRow, 0x3000, LVIS_STATEIMAGEMASK);
+ else if (it->hInst)
+ m_plugList.SetItemState(it->iRow, 0x2000, LVIS_STATEIMAGEMASK);
+ }
// sort out the headers
m_plugList.SetColumnWidth(0, LVSCW_AUTOSIZE); // dll name
|