[RAPPS] Don't display the "Selected" apps count in APPWIZ mode (#6655)

The count makes sense only in normal mode, where we can select many apps
for bulk-install.

Split the IDS_APPS_COUNT string into it and IDS_APPS_SELECT_COUNT, and
append the number of selected apps only when we aren't in APPWIZ mode.
This commit is contained in:
Hermès Bélusca-Maïto 2024-09-15 21:12:36 +02:00
parent f23394986a
commit 5aecdd0840
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
28 changed files with 63 additions and 29 deletions

View file

@ -608,8 +608,16 @@ CMainWindow::UpdateStatusBarText()
if (m_StatusBar)
{
CStringW szBuffer;
szBuffer.Format(IDS_APPS_COUNT, m_ApplicationView->GetItemCount());
// Append the number of selected apps if not in APPWIZ-mode.
if (!m_bAppwizMode)
{
CStringW szBuffer2;
szBuffer2.Format(IDS_APPS_SELECT_COUNT, m_Selected.GetCount());
szBuffer += szBuffer2;
}
szBuffer.Format(IDS_APPS_COUNT, m_ApplicationView->GetItemCount(), m_Selected.GetCount());
m_StatusBar->SetText(szBuffer);
}
}