Progress dialog: show analysing... while no files or modules are known yet.

This commit is contained in:
Megamouse 2023-09-03 10:02:36 +02:00
parent 1c8f1b2c27
commit b5dac0c333

View File

@ -212,10 +212,17 @@ void progress_dialog_server::operator()()
std::string progr = "Progress:";
if (ftotal)
fmt::append(progr, " file %u of %u%s", fdone, ftotal, ptotal ? "," : "");
if (ptotal)
fmt::append(progr, " module %u of %u", pdone, ptotal);
if (ftotal || ptotal)
{
if (ftotal)
fmt::append(progr, " file %u of %u%s", fdone, ftotal, ptotal ? "," : "");
if (ptotal)
fmt::append(progr, " module %u of %u", pdone, ptotal);
}
else
{
fmt::append(progr, " analysing...");
}
// Changes detected, send update
if (native_dlg)