Respected download manager when loading multiple files from menu.
This commit is contained in:
parent
c7583e3106
commit
88b0ea70b3
|
@ -84,7 +84,9 @@ void AddAction(
|
||||||
: (downloadPath == u"tmp"_q)
|
: (downloadPath == u"tmp"_q)
|
||||||
? session->local().tempDirectory()
|
? session->local().tempDirectory()
|
||||||
: downloadPath;
|
: downloadPath;
|
||||||
if (path.isEmpty()) return;
|
if (path.isEmpty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const auto fullPath = [&](int i) {
|
const auto fullPath = [&](int i) {
|
||||||
return filedialogDefaultName(
|
return filedialogDefaultName(
|
||||||
|
@ -121,7 +123,9 @@ void AddAction(
|
||||||
};
|
};
|
||||||
const auto saveDocuments = [=] {
|
const auto saveDocuments = [=] {
|
||||||
for (const auto &pair : documents) {
|
for (const auto &pair : documents) {
|
||||||
DocumentSaveClickHandler::Save(pair.second, pair.first->owner());
|
DocumentSaveClickHandler::SaveAndTrack(
|
||||||
|
pair.second,
|
||||||
|
pair.first->owner());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue