mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-21 04:07:46 +00:00
Pressing enter on the password or otp text field now logs you in
This commit is contained in:
parent
a72c031bf2
commit
dca7342854
1 changed files with 8 additions and 0 deletions
|
@ -243,6 +243,14 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo
|
||||||
loginButton = new QPushButton("Login");
|
loginButton = new QPushButton("Login");
|
||||||
registerButton = new QPushButton("Register");
|
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();
|
auto emptyWidget = new QWidget();
|
||||||
emptyWidget->setLayout(layout);
|
emptyWidget->setLayout(layout);
|
||||||
setCentralWidget(emptyWidget);
|
setCentralWidget(emptyWidget);
|
||||||
|
|
Loading…
Add table
Reference in a new issue