Respected download manager when loading multiple files from menu.

This commit is contained in:
23rd 2022-11-25 16:41:01 +03:00
parent c7583e3106
commit 88b0ea70b3
1 changed files with 6 additions and 2 deletions

View File

@ -84,7 +84,9 @@ void AddAction(
: (downloadPath == u"tmp"_q)
? session->local().tempDirectory()
: downloadPath;
if (path.isEmpty()) return;
if (path.isEmpty()) {
return;
}
const auto fullPath = [&](int i) {
return filedialogDefaultName(
@ -121,7 +123,9 @@ void AddAction(
};
const auto saveDocuments = [=] {
for (const auto &pair : documents) {
DocumentSaveClickHandler::Save(pair.second, pair.first->owner());
DocumentSaveClickHandler::SaveAndTrack(
pair.second,
pair.first->owner());
}
};