update .files db in background

This commit is contained in:
guinux
2017-08-04 15:57:42 +02:00
parent 4773afb494
commit 960e1b0259
2 changed files with 7 additions and 14 deletions

View File

@@ -1391,8 +1391,8 @@ namespace Pamac {
rates_nb = 0;
fraction = 0;
timer.start ();
if (filename.has_suffix (".db") || filename.has_suffix (".files")) {
string action = dgettext (null, "Refreshing %s").printf (filename) + "...";
if (filename.has_suffix (".db")) {
string action = dgettext (null, "Refreshing %s").printf (filename.replace (".db", "")) + "...";
reset_progress_box (action);
}
} else if (xfered == total) {