mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 07:25:46 +00:00
Allow custom lang loading using Alt+Shift+Click.
This commit is contained in:
@@ -37,7 +37,12 @@ void SetupLanguageButton(
|
||||
icon ? &st::settingsIconLanguage : nullptr);
|
||||
const auto guard = Ui::AttachAsChild(button, base::binary_guard());
|
||||
button->addClickHandler([=] {
|
||||
*guard = LanguageBox::Show();
|
||||
const auto m = button->clickModifiers();
|
||||
if ((m & Qt::ShiftModifier) && (m & Qt::AltModifier)) {
|
||||
Lang::CurrentCloudManager().switchToLanguage(qsl("custom"));
|
||||
} else {
|
||||
*guard = LanguageBox::Show();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user