2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Show all entries as files in Downloads.

This commit is contained in:
John Preston
2022-02-27 14:27:19 +03:00
parent e89c95551f
commit 147d2e1934
6 changed files with 40 additions and 9 deletions

View File

@@ -433,6 +433,9 @@ void Widget::setupDownloadBar() {
_downloadBar->clicks(
) | rpl::start_with_next([=] {
auto &&list = Core::App().downloadManager().loadingList();
const auto guard = gsl::finally([] {
Core::App().downloadManager().clearIfFinished();
});
auto first = (HistoryItem*)nullptr;
for (const auto id : list) {
if (!first) {