mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-09 20:06:39 -04:00
Merge branch 'javafx' of https://github.com/huanghongxun/HMCL into javafx
This commit is contained in:
commit
31ed4268b6
@ -31,6 +31,9 @@ import org.jackhuang.hmcl.ui.FXUtils;
|
|||||||
import org.jackhuang.hmcl.ui.construct.DialogCloseEvent;
|
import org.jackhuang.hmcl.ui.construct.DialogCloseEvent;
|
||||||
|
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
|
import static org.jackhuang.hmcl.util.Logging.LOG;
|
||||||
|
|
||||||
public class AccountLoginPane extends StackPane {
|
public class AccountLoginPane extends StackPane {
|
||||||
private final Account oldAccount;
|
private final Account oldAccount;
|
||||||
@ -64,6 +67,7 @@ public class AccountLoginPane extends StackPane {
|
|||||||
fireEvent(new DialogCloseEvent());
|
fireEvent(new DialogCloseEvent());
|
||||||
progressBar.setVisible(false);
|
progressBar.setVisible(false);
|
||||||
}, e -> {
|
}, e -> {
|
||||||
|
LOG.log(Level.INFO, "Failed to login with password: " + oldAccount, e);
|
||||||
if (e instanceof NoSelectedCharacterException) {
|
if (e instanceof NoSelectedCharacterException) {
|
||||||
fireEvent(new DialogCloseEvent());
|
fireEvent(new DialogCloseEvent());
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user