Browse Source

refactor(profile): reorder statements

pull/3305/head
a68366 9 years ago
parent
commit
c236b8a1d2
  1. 10
      src/widget/form/profileform.cpp

10
src/widget/form/profileform.cpp

@ -393,15 +393,15 @@ void ProfileForm::onLogoutClicked() @@ -393,15 +393,15 @@ void ProfileForm::onLogoutClicked()
void ProfileForm::setPasswordButtonsText()
{
if (!Nexus::getProfile()->isEncrypted())
if (Nexus::getProfile()->isEncrypted())
{
bodyUI->changePassButton->setText(tr("Set profile password", "button text"));
bodyUI->deletePassButton->setVisible(false);
bodyUI->changePassButton->setText(tr("Change password", "button text"));
bodyUI->deletePassButton->setVisible(true);
}
else
{
bodyUI->changePassButton->setText(tr("Change password", "button text"));
bodyUI->deletePassButton->setVisible(true);
bodyUI->changePassButton->setText(tr("Set profile password", "button text"));
bodyUI->deletePassButton->setVisible(false);
}
}

Loading…
Cancel
Save