mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Small startup speed improvement
This commit is contained in:
parent
e89b7e1c6d
commit
19a1851547
|
@ -40,7 +40,8 @@ Profile::Profile(QString name, QString password, bool isNewProfile)
|
||||||
: name{name}, password{password},
|
: name{name}, password{password},
|
||||||
newProfile{isNewProfile}, isRemoved{false}
|
newProfile{isNewProfile}, isRemoved{false}
|
||||||
{
|
{
|
||||||
passkey = *core->createPasskey(password);
|
if (!password.isEmpty())
|
||||||
|
passkey = *core->createPasskey(password);
|
||||||
|
|
||||||
Settings& s = Settings::getInstance();
|
Settings& s = Settings::getInstance();
|
||||||
s.setCurrentProfile(name);
|
s.setCurrentProfile(name);
|
||||||
|
|
|
@ -94,7 +94,9 @@ void LoginScreen::reset()
|
||||||
ui->loginPassword->setFocus();
|
ui->loginPassword->setFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ui->autoLoginCB->blockSignals(true);
|
||||||
ui->autoLoginCB->setChecked(Settings::getInstance().getAutoLogin());
|
ui->autoLoginCB->setChecked(Settings::getInstance().getAutoLogin());
|
||||||
|
ui->autoLoginCB->blockSignals(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
|
|
Loading…
Reference in New Issue
Block a user