Fix selected account is not loaded
This commit is contained in:
@@ -84,6 +84,8 @@ public class Settings {
|
|||||||
|
|
||||||
ConfigHolder.CONFIG.authlibInjectorServers.addListener(onInvalidating(this::removeDanglingAuthlibInjectorAccounts));
|
ConfigHolder.CONFIG.authlibInjectorServers.addListener(onInvalidating(this::removeDanglingAuthlibInjectorAccounts));
|
||||||
|
|
||||||
|
this.selectedAccount.set(accounts.get(ConfigHolder.CONFIG.selectedAccount.get()));
|
||||||
|
|
||||||
checkProfileMap();
|
checkProfileMap();
|
||||||
|
|
||||||
save();
|
save();
|
||||||
@@ -300,7 +302,7 @@ public class Settings {
|
|||||||
* ACCOUNTS *
|
* ACCOUNTS *
|
||||||
****************************************/
|
****************************************/
|
||||||
|
|
||||||
private final ImmediateObjectProperty<Account> selectedAccount = new ImmediateObjectProperty<Account>(this, "selectedAccount", accounts.get(ConfigHolder.CONFIG.selectedAccount.get())) {
|
private final ImmediateObjectProperty<Account> selectedAccount = new ImmediateObjectProperty<Account>(this, "selectedAccount", null) {
|
||||||
@Override
|
@Override
|
||||||
public Account get() {
|
public Account get() {
|
||||||
Account a = super.get();
|
Account a = super.get();
|
||||||
|
|||||||
Reference in New Issue
Block a user