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)
|
||||
? 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());
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue