mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix: hide option to Load automatically
for encrypted profiles
There have been numerous issues about it from confused users, e.g. #2698, #2870, #3638. Clearly tooltip alone is not enough. Could have been done long time ago in #2818, if not for naive belief that tooltip will suffice.
This commit is contained in:
parent
54350fd24f
commit
b5efc2bb71
|
@ -191,16 +191,15 @@ void LoginScreen::onLoginUsernameSelected(const QString &name)
|
|||
ui->loginPassword->show();
|
||||
// there is no way to do autologin if profile is encrypted, and
|
||||
// visible option confuses users into thinking that it is possible,
|
||||
// thus disable it (and hope that users won't think that it's a bug)
|
||||
ui->autoLoginCB->setEnabled(false);
|
||||
ui->autoLoginCB->setToolTip(tr("Password protected profiles can't be automatically loaded."));
|
||||
// thus hide it
|
||||
ui->autoLoginCB->hide();
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->loginPasswordLabel->hide();
|
||||
ui->loginPassword->hide();
|
||||
ui->autoLoginCB->setEnabled(true);
|
||||
ui->autoLoginCB->setToolTip("");
|
||||
ui->autoLoginCB->show();
|
||||
ui->autoLoginCB->setToolTip(tr("Password protected profiles can't be automatically loaded."));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user