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

Pressing enter on the password or otp text field now logs you in

This commit is contained in:
Joshua Goins 2022-04-27 11:50:29 -04:00
parent a72c031bf2
commit dca7342854

View file

@ -243,6 +243,14 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo
loginButton = new QPushButton("Login");
registerButton = new QPushButton("Register");
connect(otpEdit, &QLineEdit::returnPressed, [this] {
this->core.assetUpdater->update(currentProfile());
});
connect(passwordEdit, &QLineEdit::returnPressed, [this] {
this->core.assetUpdater->update(currentProfile());
});
auto emptyWidget = new QWidget();
emptyWidget->setLayout(layout);
setCentralWidget(emptyWidget);