diff options
author | George Hazan <ghazan@miranda.im> | 2020-12-06 12:58:17 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-12-06 12:58:17 +0300 |
commit | 2262cc295453dd8bcfa9ba488769f7ce16fb432a (patch) | |
tree | 394b3bcd4a26a985267110f0e9e363356f886b02 /src/mir_app | |
parent | 3e58739f15b443090c1314c17f320bee54a897a6 (diff) |
fix for Options - Plugins dialog: static plugins might have checkboxes
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/pluginopts.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mir_app/src/pluginopts.cpp b/src/mir_app/src/pluginopts.cpp index a4aa521d99..22a167727e 100644 --- a/src/mir_app/src/pluginopts.cpp +++ b/src/mir_app/src/pluginopts.cpp @@ -147,9 +147,7 @@ static BOOL dialogListPlugins(WIN32_FIND_DATA *fd, wchar_t *path, WPARAM, LPARAM it.lParam = (LPARAM)dat;
pCtrl->InsertItem(&it);
- if (bNoCheckbox)
- pCtrl->SetItemState(dat->iRow, 0x3000, LVIS_STATEIMAGEMASK);
- else if (isPluginOnWhiteList(fd->cFileName))
+ if (!bNoCheckbox && isPluginOnWhiteList(fd->cFileName))
dat->bWasChecked = true;
if (dat->iRow != -1) {
@@ -329,7 +327,7 @@ public: // set checkboxes for all loaded plugins
for (auto &it : arPluginList)
if (isPluginOnWhiteList(it->fileName) && it->hInst)
- m_plugList.SetItemState(it->iRow, 0x2000, LVIS_STATEIMAGEMASK);
+ m_plugList.SetItemState(it->iRow, (it->flags & STATIC_PLUGIN) ? 0x3000 : 0x2000, LVIS_STATEIMAGEMASK);
// sort out the headers
m_plugList.SetColumnWidth(0, LVSCW_AUTOSIZE); // dll name
|