feat(export): update export logic

This commit is contained in:
uncor3
2026-02-25 07:59:43 +00:00
parent c85342d90b
commit 83dfbd7052
2 changed files with 6 additions and 9 deletions
+4 -2
View File
@@ -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++;
}
+2 -7
View File
@@ -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;
}