2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 07:35:12 +00:00

Improve non-authed language switch.

This commit is contained in:
John Preston
2019-06-19 13:22:25 +02:00
parent a7c8feaecb
commit 52e40cbc6e
9 changed files with 61 additions and 10 deletions

View File

@@ -94,7 +94,7 @@ bool PasscodeBox::onlyCheckCurrent() const {
void PasscodeBox::prepare() {
addButton(
(_cloudFields.customSubmitButton
? rpl::single(*_cloudFields.customSubmitButton)
? std::move(_cloudFields.customSubmitButton)
: _turningOff
? tr::lng_passcode_remove_button()
: tr::lng_settings_save()),
@@ -111,7 +111,7 @@ void PasscodeBox::prepare() {
if (onlyCheck) {
_oldPasscode->show();
setTitle(_cloudFields.customTitle
? rpl::single(*_cloudFields.customTitle)
? std::move(_cloudFields.customTitle)
: _cloudPwd
? tr::lng_cloud_password_remove()
: tr::lng_passcode_remove());