2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Show downloaded files in Downloads.

This commit is contained in:
John Preston
2022-02-26 14:51:54 +03:00
parent 1f2eba9dc9
commit 3425dc027c
12 changed files with 257 additions and 83 deletions

View File

@@ -434,9 +434,9 @@ void Widget::setupDownloadBar() {
) | rpl::start_with_next([=] {
auto &&list = Core::App().downloadManager().loadingList();
auto first = (HistoryItem*)nullptr;
for (const auto &id : list) {
for (const auto id : list) {
if (!first) {
first = id.object.item;
first = id->object.item;
} else {
controller()->showSection(
Info::Downloads::Make(