diff --git a/Telegram/SourceFiles/menu/menu_item_download_files.cpp b/Telegram/SourceFiles/menu/menu_item_download_files.cpp index 3354332836..bf122fb09f 100644 --- a/Telegram/SourceFiles/menu/menu_item_download_files.cpp +++ b/Telegram/SourceFiles/menu/menu_item_download_files.cpp @@ -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()); } };