diff --git a/src/launcherwindow.cpp b/src/launcherwindow.cpp index 2076dae..fc3eb04 100644 --- a/src/launcherwindow.cpp +++ b/src/launcherwindow.cpp @@ -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();