mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Disable custom languages for now.
This commit is contained in:
parent
c8a05137f4
commit
679347309e
2 changed files with 5 additions and 3 deletions
|
@ -392,7 +392,8 @@ void Rows::mouseReleaseEvent(QMouseEvent *e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Rows::canShare(not_null<const Row*> row) const {
|
bool Rows::canShare(not_null<const Row*> row) const {
|
||||||
return !_areOfficial && !row->data.id.startsWith('#');
|
// #TODO langs
|
||||||
|
return false && !_areOfficial && !row->data.id.startsWith('#');
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Rows::canRemove(not_null<const Row*> row) const {
|
bool Rows::canRemove(not_null<const Row*> row) const {
|
||||||
|
|
|
@ -69,8 +69,9 @@ bool ShowStickerSet(const Match &match, const QVariant &context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SetLanguage(const Match &match, const QVariant &context) {
|
bool SetLanguage(const Match &match, const QVariant &context) {
|
||||||
const auto languageId = match->captured(1);
|
// #TODO langs
|
||||||
Lang::CurrentCloudManager().switchWithWarning(languageId);
|
//const auto languageId = match->captured(1);
|
||||||
|
//Lang::CurrentCloudManager().switchWithWarning(languageId);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue