mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-20 19:57:45 +00:00
Use the unified login interface in tablet version too
This commit is contained in:
parent
350e88aa34
commit
e51d8243f2
4 changed files with 8 additions and 9 deletions
|
@ -159,7 +159,7 @@ public:
|
|||
*
|
||||
* The login process is asynchronous.
|
||||
*/
|
||||
void login(LoginInformation& loginInformation);
|
||||
Q_INVOKABLE void login(LoginInformation* loginInformation);
|
||||
|
||||
/*
|
||||
* Attempts to log into a profile without LoginInformation, which may or may not work depending on a combination of
|
||||
|
|
|
@ -640,11 +640,11 @@ void LauncherCore::readGameData(ProfileSettings& profile) {
|
|||
}
|
||||
}
|
||||
|
||||
void LauncherCore::login(LoginInformation& loginInformation) {
|
||||
if (loginInformation.settings->isSapphire) {
|
||||
sapphireLauncher->login(loginInformation.settings->lobbyURL, loginInformation);
|
||||
void LauncherCore::login(LoginInformation* loginInformation) {
|
||||
if (loginInformation->settings->isSapphire) {
|
||||
sapphireLauncher->login(loginInformation->settings->lobbyURL, *loginInformation);
|
||||
} else {
|
||||
squareBoot->checkGateStatus(&loginInformation);
|
||||
squareBoot->checkGateStatus(loginInformation);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -709,7 +709,7 @@ bool LauncherCore::autoLogin(ProfileSettings& profile) {
|
|||
}
|
||||
|
||||
// TODO: when login fails, we need some way to propagate this back? or not?
|
||||
login(*info);
|
||||
login(info);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -303,7 +303,7 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo
|
|||
}
|
||||
#endif
|
||||
|
||||
this->core.login(*info);
|
||||
this->core.login(info);
|
||||
});
|
||||
|
||||
connect(loginButton, &QPushButton::released, [=] {
|
||||
|
|
|
@ -67,8 +67,7 @@ ApplicationWindow {
|
|||
info.password = passwordField.text
|
||||
info.oneTimePassword = otpField.text
|
||||
|
||||
print(info);
|
||||
core.squareBoot.checkGateStatus(info);
|
||||
core.login(info);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue