mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 07:05:13 +00:00
Revert "Disable custom languages for now."
This reverts commit 679347309e
.
This commit is contained in:
@@ -392,8 +392,7 @@ void Rows::mouseReleaseEvent(QMouseEvent *e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool Rows::canShare(not_null<const Row*> row) const {
|
bool Rows::canShare(not_null<const Row*> row) const {
|
||||||
// #TODO langs
|
return !_areOfficial && !row->data.id.startsWith('#');
|
||||||
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,9 +69,8 @@ bool ShowStickerSet(const Match &match, const QVariant &context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool SetLanguage(const Match &match, const QVariant &context) {
|
bool SetLanguage(const Match &match, const QVariant &context) {
|
||||||
// #TODO langs
|
const auto languageId = match->captured(1);
|
||||||
//const auto languageId = match->captured(1);
|
Lang::CurrentCloudManager().switchWithWarning(languageId);
|
||||||
//Lang::CurrentCloudManager().switchWithWarning(languageId);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user