summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/PluginUpdater/src/DlgListNew.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/PluginUpdater/src/DlgListNew.cpp b/plugins/PluginUpdater/src/DlgListNew.cpp
index afde606502..f406d96b3b 100644
--- a/plugins/PluginUpdater/src/DlgListNew.cpp
+++ b/plugins/PluginUpdater/src/DlgListNew.cpp
@@ -265,8 +265,14 @@ public:
if (it->bEnabled)
iCount++;
- btnOk.SetText(CMStringW(FORMAT, L"%s (%d)", TranslateT("Download"), iCount));
- btnOk.Enable(iCount > 0);
+ CMStringW wszText(TranslateT("Download"));
+ if (iCount > 0) {
+ wszText.AppendFormat(L" (%d)", iCount);
+ btnOk.Enable();
+ }
+ else btnOk.Disable();
+
+ btnOk.SetText(wszText);
}
}