mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-25 04:38:23 +00:00
Fix language switch when getting difference.
This commit is contained in:
parent
216692cd9b
commit
647d6ae443
@ -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…
Reference in New Issue
Block a user