mirror of
https://github.com/PrismLauncher/PrismLauncher
synced 2026-04-23 09:05:03 +00:00
apply reviewer suggestion: use explicit MSA check
Co-authored-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com> Signed-off-by: captivator <84224501+qaptivator@users.noreply.github.com>
This commit is contained in:
parent
7d0d9a3827
commit
4344f5eef9
|
|
@ -656,7 +656,7 @@ void MainWindow::repopulateAccountsMenu()
|
||||||
auto accounts = APPLICATION->accounts();
|
auto accounts = APPLICATION->accounts();
|
||||||
MinecraftAccountPtr defaultAccount = accounts->defaultAccount();
|
MinecraftAccountPtr defaultAccount = accounts->defaultAccount();
|
||||||
|
|
||||||
bool canChangeSkin = defaultAccount && (defaultAccount->accountType() != AccountType::Offline) && !defaultAccount->isActive();
|
bool canChangeSkin = defaultAccount && (defaultAccount->accountType() == AccountType::MSA) && !defaultAccount->isActive();
|
||||||
ui->actionManageSkins->setEnabled(canChangeSkin);
|
ui->actionManageSkins->setEnabled(canChangeSkin);
|
||||||
|
|
||||||
QString active_profileId = "";
|
QString active_profileId = "";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue