Simplified the indexing status update code by treating the updater as a singleton

Add a 'flushing' state for when we commit the Xapian index.
This commit is contained in:
Jean-Francois Dockes
2021-04-16 13:27:53 +02:00
parent 72fe5a25a4
commit f1b2d3004a
14 changed files with 255 additions and 239 deletions
+1
View File
@@ -46,6 +46,7 @@ void RclMain::updateIdxStatus()
switch (status.phase) {
case DbIxStatus::DBIXS_NONE:phs=tr("None");break;
case DbIxStatus::DBIXS_FILES: phs=tr("Updating");break;
case DbIxStatus::DBIXS_FLUSH: phs=tr("Flushing");break;
case DbIxStatus::DBIXS_PURGE: phs=tr("Purge");break;
case DbIxStatus::DBIXS_STEMDB: phs=tr("Stemdb");break;
case DbIxStatus::DBIXS_CLOSING:phs=tr("Closing");break;