mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-31 07:52:06 +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() {
|
void CloudManager::requestLangPackDifference() {
|
||||||
if (_langpack.isCustom() || _langPackRequestId) {
|
request(_langPackRequestId).cancel();
|
||||||
|
if (_langpack.isCustom()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -171,7 +172,6 @@ bool CloudManager::showOfferSwitchBox() {
|
|||||||
if (_offerSwitchToId.isEmpty()) {
|
if (_offerSwitchToId.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
request(_langPackRequestId).cancel();
|
|
||||||
performSwitchAndRestart(_offerSwitchToId);
|
performSwitchAndRestart(_offerSwitchToId);
|
||||||
}, [this] {
|
}, [this] {
|
||||||
Ui::hideLayer();
|
Ui::hideLayer();
|
||||||
|
Loading…
Reference in New Issue
Block a user