diff options
-rw-r--r-- | src/mir_app/src/pluginopts.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mir_app/src/pluginopts.cpp b/src/mir_app/src/pluginopts.cpp index fb6cbf4318..570a60d2d3 100644 --- a/src/mir_app/src/pluginopts.cpp +++ b/src/mir_app/src/pluginopts.cpp @@ -139,8 +139,10 @@ static BOOL dialogListPlugins(WIN32_FIND_DATA *fd, wchar_t *path, WPARAM, LPARAM ListView_SetItemState(hwndList, iRow, 0x3000, LVIS_STATEIMAGEMASK);
}
else if (isPluginOnWhiteList(fd->cFileName)) {
- dat->bWasChecked = true;
- ListView_SetItemState(hwndList, iRow, 0x2000, LVIS_STATEIMAGEMASK);
+ if (!dat->bRequiresRestart)
+ dat->bWasChecked = true;
+ if (hInst)
+ ListView_SetItemState(hwndList, iRow, 0x2000, LVIS_STATEIMAGEMASK);
}
if (iRow != -1) {
|