mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-01 03:50:43 +00:00
Fix using of base langpack for custom languages.
This commit is contained in:
parent
ffd6f7b326
commit
cf227490d7
@ -221,7 +221,6 @@ mtpRequestId CloudManager::packRequestId(Pack pack) const {
|
||||
}
|
||||
|
||||
void CloudManager::requestLangPackDifference(Pack pack) {
|
||||
const auto base = (pack == Pack::Base);
|
||||
request(base::take(packRequestId(pack))).cancel();
|
||||
if (_langpack.isCustom()) {
|
||||
return;
|
||||
|
@ -268,7 +268,7 @@ void Instance::setBaseId(const QString &baseId, const QString &pluralId) {
|
||||
if (!_base) {
|
||||
_base = std::make_unique<Instance>(this, PrivateTag{});
|
||||
}
|
||||
_base->switchToId({ baseId, _pluralId });
|
||||
_base->switchToId({ baseId, pluralId });
|
||||
}
|
||||
}
|
||||
|
||||
@ -513,6 +513,8 @@ void Instance::fillFromSerialized(
|
||||
"Could not read data from serialized langpack."));
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
stream >> base;
|
||||
}
|
||||
if (!base.isEmpty()) {
|
||||
_base = std::make_unique<Instance>(this, PrivateTag{});
|
||||
|
Loading…
Reference in New Issue
Block a user