mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-21 20:27:45 +00:00
Make it much clearer in login settings when OTP is disabled
This happens when you have a profile setup for Sapphire, as Sapphire lobbies currently don't support OTP.
This commit is contained in:
parent
08c86c07dc
commit
57798503da
1 changed files with 6 additions and 0 deletions
|
@ -545,6 +545,12 @@ void SettingsWindow::reloadControls() {
|
|||
rememberUsernameBox->setChecked(profile.rememberUsername);
|
||||
rememberPasswordBox->setChecked(profile.rememberPassword);
|
||||
useOneTimePassword->setChecked(profile.useOneTimePassword);
|
||||
useOneTimePassword->setEnabled(!profile.isSapphire);
|
||||
if(!useOneTimePassword->isEnabled()) {
|
||||
useOneTimePassword->setToolTip("OTP is not supported by Sapphire servers.");
|
||||
} else {
|
||||
useOneTimePassword->setToolTip("");
|
||||
}
|
||||
gameLicenseBox->setCurrentIndex((int)profile.license);
|
||||
|
||||
// dalamud
|
||||
|
|
Loading…
Add table
Reference in a new issue