mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
refactor(profile): reorder statements
This commit is contained in:
parent
f9edd39bba
commit
c236b8a1d2
|
@ -393,16 +393,16 @@ void ProfileForm::onLogoutClicked()
|
||||||
|
|
||||||
void ProfileForm::setPasswordButtonsText()
|
void ProfileForm::setPasswordButtonsText()
|
||||||
{
|
{
|
||||||
if (!Nexus::getProfile()->isEncrypted())
|
if (Nexus::getProfile()->isEncrypted())
|
||||||
{
|
|
||||||
bodyUI->changePassButton->setText(tr("Set profile password", "button text"));
|
|
||||||
bodyUI->deletePassButton->setVisible(false);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
bodyUI->changePassButton->setText(tr("Change password", "button text"));
|
bodyUI->changePassButton->setText(tr("Change password", "button text"));
|
||||||
bodyUI->deletePassButton->setVisible(true);
|
bodyUI->deletePassButton->setVisible(true);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
bodyUI->changePassButton->setText(tr("Set profile password", "button text"));
|
||||||
|
bodyUI->deletePassButton->setVisible(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProfileForm::onCopyQrClicked()
|
void ProfileForm::onCopyQrClicked()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user