summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-03-03 20:23:57 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-03-03 20:23:57 +0300
commit2a8e079fbba55bd59acf1442b7699fcaf56ca94b (patch)
tree627ef9d092651eff259664989e1a6317eb93c4d7 /plugins/PluginUpdater
parentd40cd3f2c8dc2d3f4b33368b3321979d8947ad3d (diff)
fixes #3345 (PluginUpdater: добавить на кнопку "Загрузка" количество выбранных пунктов)
Diffstat (limited to 'plugins/PluginUpdater')
-rw-r--r--plugins/PluginUpdater/src/DlgListNew.cpp14
-rw-r--r--plugins/PluginUpdater/src/version.h2
2 files changed, 7 insertions, 9 deletions
diff --git a/plugins/PluginUpdater/src/DlgListNew.cpp b/plugins/PluginUpdater/src/DlgListNew.cpp
index 86b19f96b9..afde606502 100644
--- a/plugins/PluginUpdater/src/DlgListNew.cpp
+++ b/plugins/PluginUpdater/src/DlgListNew.cpp
@@ -260,15 +260,13 @@ public:
FILEINFO *p = (FILEINFO *)lvI.lParam;
p->bEnabled = m_list.GetCheckState(nmlv->iItem);
- bool enableOk = false;
- for (auto &it : *todo) {
- if (it->bEnabled) {
- enableOk = true;
- break;
- }
- }
+ int iCount = 0;
+ for (auto &it : *todo)
+ if (it->bEnabled)
+ iCount++;
- btnOk.Enable(enableOk);
+ btnOk.SetText(CMStringW(FORMAT, L"%s (%d)", TranslateT("Download"), iCount));
+ btnOk.Enable(iCount > 0);
}
}
diff --git a/plugins/PluginUpdater/src/version.h b/plugins/PluginUpdater/src/version.h
index acfdd6cb78..fbfd07b5cd 100644
--- a/plugins/PluginUpdater/src/version.h
+++ b/plugins/PluginUpdater/src/version.h
@@ -1,7 +1,7 @@
#define __MAJOR_VERSION 0
#define __MINOR_VERSION 2
#define __RELEASE_NUM 1
-#define __BUILD_NUM 4
+#define __BUILD_NUM 5
#include <stdver.h>