@@ -34,6 +34,7 @@ import org.jackhuang.hmcl.auth.AuthenticationException;
|
|||||||
import org.jackhuang.hmcl.auth.CredentialExpiredException;
|
import org.jackhuang.hmcl.auth.CredentialExpiredException;
|
||||||
import org.jackhuang.hmcl.auth.authlibinjector.AuthlibInjectorAccount;
|
import org.jackhuang.hmcl.auth.authlibinjector.AuthlibInjectorAccount;
|
||||||
import org.jackhuang.hmcl.auth.authlibinjector.AuthlibInjectorServer;
|
import org.jackhuang.hmcl.auth.authlibinjector.AuthlibInjectorServer;
|
||||||
|
import org.jackhuang.hmcl.auth.microsoft.MicrosoftAccount;
|
||||||
import org.jackhuang.hmcl.auth.offline.OfflineAccount;
|
import org.jackhuang.hmcl.auth.offline.OfflineAccount;
|
||||||
import org.jackhuang.hmcl.auth.yggdrasil.CompleteGameProfile;
|
import org.jackhuang.hmcl.auth.yggdrasil.CompleteGameProfile;
|
||||||
import org.jackhuang.hmcl.auth.yggdrasil.TextureType;
|
import org.jackhuang.hmcl.auth.yggdrasil.TextureType;
|
||||||
@@ -44,6 +45,7 @@ import org.jackhuang.hmcl.task.Schedulers;
|
|||||||
import org.jackhuang.hmcl.task.Task;
|
import org.jackhuang.hmcl.task.Task;
|
||||||
import org.jackhuang.hmcl.ui.Controllers;
|
import org.jackhuang.hmcl.ui.Controllers;
|
||||||
import org.jackhuang.hmcl.ui.DialogController;
|
import org.jackhuang.hmcl.ui.DialogController;
|
||||||
|
import org.jackhuang.hmcl.ui.FXUtils;
|
||||||
import org.jackhuang.hmcl.ui.construct.MessageDialogPane.MessageType;
|
import org.jackhuang.hmcl.ui.construct.MessageDialogPane.MessageType;
|
||||||
import org.jackhuang.hmcl.util.skin.InvalidSkinException;
|
import org.jackhuang.hmcl.util.skin.InvalidSkinException;
|
||||||
import org.jackhuang.hmcl.util.skin.NormalizedSkin;
|
import org.jackhuang.hmcl.util.skin.NormalizedSkin;
|
||||||
@@ -137,7 +139,7 @@ public class AccountListItem extends RadioButton {
|
|||||||
} else {
|
} else {
|
||||||
return createBooleanBinding(() -> true);
|
return createBooleanBinding(() -> true);
|
||||||
}
|
}
|
||||||
} else if (account instanceof OfflineAccount) {
|
} else if (account instanceof OfflineAccount || account instanceof MicrosoftAccount) {
|
||||||
return createBooleanBinding(() -> true);
|
return createBooleanBinding(() -> true);
|
||||||
} else {
|
} else {
|
||||||
return createBooleanBinding(() -> false);
|
return createBooleanBinding(() -> false);
|
||||||
@@ -153,6 +155,10 @@ public class AccountListItem extends RadioButton {
|
|||||||
Controllers.dialog(new OfflineAccountSkinPane((OfflineAccount) account));
|
Controllers.dialog(new OfflineAccountSkinPane((OfflineAccount) account));
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
if (account instanceof MicrosoftAccount) {
|
||||||
|
FXUtils.openLink("https://www.minecraft.net/profile/skin");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
if (!(account instanceof YggdrasilAccount)) {
|
if (!(account instanceof YggdrasilAccount)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user