mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-22 00:57:09 +02:00
Fix language switch when getting difference.
This commit is contained in:
parent
216692cd9b
commit
647d6ae443
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,8 @@ CloudManager::CloudManager(Instance &langpack, gsl::not_null<MTP::Instance*> mtp
|
|||
}
|
||||
|
||||
void CloudManager::requestLangPackDifference() {
|
||||
if (_langpack.isCustom() || _langPackRequestId) {
|
||||
request(_langPackRequestId).cancel();
|
||||
if (_langpack.isCustom()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -171,7 +172,6 @@ bool CloudManager::showOfferSwitchBox() {
|
|||
if (_offerSwitchToId.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
request(_langPackRequestId).cancel();
|
||||
performSwitchAndRestart(_offerSwitchToId);
|
||||
}, [this] {
|
||||
Ui::hideLayer();
|
||||
|
|
Loading…
Add table
Reference in a new issue