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:
parent
108fd7c2c5
commit
95b52b43f8
1 changed files with 4 additions and 2 deletions
|
@ -244,11 +244,13 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo
|
|||
registerButton = new QPushButton("Register");
|
||||
|
||||
connect(otpEdit, &QLineEdit::returnPressed, [this] {
|
||||
this->core.assetUpdater->update(currentProfile());
|
||||
if(loginButton->isEnabled())
|
||||
this->core.assetUpdater->update(currentProfile());
|
||||
});
|
||||
|
||||
connect(passwordEdit, &QLineEdit::returnPressed, [this] {
|
||||
this->core.assetUpdater->update(currentProfile());
|
||||
if(loginButton->isEnabled())
|
||||
this->core.assetUpdater->update(currentProfile());
|
||||
});
|
||||
|
||||
auto emptyWidget = new QWidget();
|
||||
|
|
Loading…
Add table
Reference in a new issue