mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-24 14:33:02 +02:00
fix: image order when downloading albums
This commit is contained in:
parent
69420f5750
commit
717d197998
1 changed files with 12 additions and 0 deletions
|
@ -226,6 +226,12 @@ void AddDownloadFilesAction(
|
|||
return;
|
||||
}
|
||||
}
|
||||
std::sort(docs.begin(), docs.end(), [](const auto &a, const auto &b) {
|
||||
return a.second < b.second;
|
||||
});
|
||||
std::sort(photos.begin(), photos.end(), [](const auto &a, const auto &b) {
|
||||
return a.second < b.second;
|
||||
});
|
||||
const auto done = [weak = Ui::MakeWeak(list)] {
|
||||
if (const auto strong = weak.data()) {
|
||||
strong->cancelSelection();
|
||||
|
@ -249,6 +255,12 @@ void AddDownloadFilesAction(
|
|||
return;
|
||||
}
|
||||
}
|
||||
std::sort(docs.begin(), docs.end(), [](const auto &a, const auto &b) {
|
||||
return a.second < b.second;
|
||||
});
|
||||
std::sort(photos.begin(), photos.end(), [](const auto &a, const auto &b) {
|
||||
return a.second < b.second;
|
||||
});
|
||||
const auto done = [weak = Ui::MakeWeak(list)] {
|
||||
if (const auto strong = weak.data()) {
|
||||
strong->clearSelected();
|
||||
|
|
Loading…
Add table
Reference in a new issue