diff options
author | George Hazan <ghazan@miranda.im> | 2023-03-18 16:56:58 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-03-18 16:56:58 +0300 |
commit | 10b37395993329b5438398991a7c258fb8d577a7 (patch) | |
tree | 68583155ecc6a1c978f353073e5558006266dcbc | |
parent | dcaa9723a42a3edd9c6bae086633b0def5bad44f (diff) |
fixes #3345 completely
-rw-r--r-- | plugins/PluginUpdater/src/DlgListNew.cpp | 10 |
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);
}
}
|