mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
parent
cb8f86bc8d
commit
fe7b120003
1 changed files with 3 additions and 3 deletions
|
@ -139,6 +139,9 @@ void DownloadDictionaryInBackground(
|
|||
not_null<Main::Session*> session,
|
||||
int counter,
|
||||
std::vector<int> langs) {
|
||||
if (counter >= langs.size()) {
|
||||
return;
|
||||
}
|
||||
const auto id = langs[counter];
|
||||
counter++;
|
||||
const auto destroyer = [=] {
|
||||
|
@ -154,9 +157,6 @@ void DownloadDictionaryInBackground(
|
|||
}
|
||||
}
|
||||
|
||||
if (counter >= langs.size()) {
|
||||
return;
|
||||
}
|
||||
DownloadDictionaryInBackground(session, counter, langs);
|
||||
};
|
||||
if (DictionaryExists(id)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue