From dca7342854297bccb481a2f92529955c369f9ee5 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Wed, 27 Apr 2022 11:50:29 -0400 Subject: [PATCH] Pressing enter on the password or otp text field now logs you in --- src/launcherwindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/launcherwindow.cpp b/src/launcherwindow.cpp index ebe7e0e..44f1a44 100644 --- a/src/launcherwindow.cpp +++ b/src/launcherwindow.cpp @@ -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);