1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-23 04:57:44 +00:00

Prevent logging in with the return key even though login is disabled

This commit is contained in:
Joshua Goins 2022-04-27 13:00:40 -04:00
parent 108fd7c2c5
commit 95b52b43f8

View file

@ -244,10 +244,12 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo
registerButton = new QPushButton("Register"); registerButton = new QPushButton("Register");
connect(otpEdit, &QLineEdit::returnPressed, [this] { connect(otpEdit, &QLineEdit::returnPressed, [this] {
if(loginButton->isEnabled())
this->core.assetUpdater->update(currentProfile()); this->core.assetUpdater->update(currentProfile());
}); });
connect(passwordEdit, &QLineEdit::returnPressed, [this] { connect(passwordEdit, &QLineEdit::returnPressed, [this] {
if(loginButton->isEnabled())
this->core.assetUpdater->update(currentProfile()); this->core.assetUpdater->update(currentProfile());
}); });