void MetadataIOCoordinator::writingWorkerFinished(bool success) { LOG_INFO << success; setHasErrors(!success); const QVector<Models::ArtworkMetadata*> &artworksToWrite = m_WritingWorker->getItemsToWrite(); m_CommandManager->addToLibrary(artworksToWrite); emit metadataWritingFinished(); }
void MetadataIOCoordinator::readingWorkerFinished(bool success) { qDebug() << "Metadata reading finished with status" << success; if (m_CanProcessResults) { readingFinishedHandler(m_IgnoreBackupsAtImport); } setHasErrors(!success); m_IsImportInProgress = false; }
void MetadataIOCoordinator::readingWorkerFinished(bool success) { LOG_INFO << "Success:" << success; setHasErrors(!success); const QVector<Models::ArtworkMetadata*> &itemsToRead = m_ReadingWorker->getItemsToRead(); m_CommandManager->generatePreviews(itemsToRead); if (m_CanProcessResults) { readingFinishedHandler(m_IgnoreBackupsAtImport); } else { LOG_INFO << "Can't process results. Waiting for user interaction..."; } m_IsImportInProgress = false; }
void MetadataIOCoordinator::writingWorkerFinished(bool success) { setHasErrors(!success); emit metadataWritingFinished(); }