From 83dfbd7052821ba70d3e5e80894ebda5bbd087ca Mon Sep 17 00:00:00 2001 From: uncor3 Date: Wed, 25 Feb 2026 07:59:43 +0000 Subject: [PATCH] feat(export): update export logic --- src/afcexplorerwidget.cpp | 6 ++++-- src/gallerywidget.cpp | 9 ++------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/afcexplorerwidget.cpp b/src/afcexplorerwidget.cpp index d9ac881..5769e2d 100644 --- a/src/afcexplorerwidget.cpp +++ b/src/afcexplorerwidget.cpp @@ -297,7 +297,8 @@ void AfcExplorerWidget::onFileListContextMenu(const QPoint &pos) QString fileName = selItem->text(); QString devicePath = currPath == "/" ? "/" + fileName : currPath + fileName; - exportItems.append(ExportItem(devicePath, fileName, index)); + exportItems.append( + ExportItem(devicePath, fileName, m_device->udid, index)); index++; } @@ -354,7 +355,8 @@ void AfcExplorerWidget::onExportClicked() QString fileName = item->text(); QString devicePath = currPath == "/" ? "/" + fileName : currPath + fileName; - exportItems.append(ExportItem(devicePath, fileName, index)); + exportItems.append( + ExportItem(devicePath, fileName, m_device->udid, index)); index++; } diff --git a/src/gallerywidget.cpp b/src/gallerywidget.cpp index 7a8929b..b9d2359 100644 --- a/src/gallerywidget.cpp +++ b/src/gallerywidget.cpp @@ -232,12 +232,6 @@ void GalleryWidget::onExportSelected() return; } - if (ExportManager::sharedInstance()->isExporting()) { - QMessageBox::information(this, "Export in Progress", - "An export is already in progress."); - return; - } - QModelIndexList selectedIndexes = m_listView->selectionModel()->selectedIndexes(); QStringList filePaths = m_model->getSelectedFilePaths(selectedIndexes); @@ -259,7 +253,8 @@ void GalleryWidget::onExportSelected() int index = 0; for (const QString &filePath : filePaths) { QString fileName = filePath.split('/').last(); - exportItems.append(ExportItem(filePath, fileName, index)); + exportItems.append( + ExportItem(filePath, fileName, m_device->udid, index)); ++index; }