mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-14 14:26:43 -04:00
Maintain statement when no account
This commit is contained in:
parent
004c3c588a
commit
af571d533d
@ -60,9 +60,16 @@ public class Navigator extends StackPane {
|
|||||||
Logging.LOG.info("Navigate to " + node);
|
Logging.LOG.info("Navigate to " + node);
|
||||||
|
|
||||||
stack.push(node);
|
stack.push(node);
|
||||||
fireEvent(new NavigationEvent(this, from, NavigationEvent.NAVIGATING));
|
|
||||||
|
NavigationEvent navigating = new NavigationEvent(this, from, NavigationEvent.NAVIGATING);
|
||||||
|
fireEvent(navigating);
|
||||||
|
node.fireEvent(navigating);
|
||||||
|
|
||||||
setContent(node);
|
setContent(node);
|
||||||
fireEvent(new NavigationEvent(this, node, NavigationEvent.NAVIGATED));
|
|
||||||
|
NavigationEvent navigated = new NavigationEvent(this, node, NavigationEvent.NAVIGATED);
|
||||||
|
fireEvent(navigated);
|
||||||
|
node.fireEvent(navigated);
|
||||||
|
|
||||||
EventHandler<PageCloseEvent> handler = event -> close(node);
|
EventHandler<PageCloseEvent> handler = event -> close(node);
|
||||||
node.getProperties().put(PROPERTY_DIALOG_CLOSE_HANDLER, handler);
|
node.getProperties().put(PROPERTY_DIALOG_CLOSE_HANDLER, handler);
|
||||||
@ -88,10 +95,13 @@ public class Navigator extends StackPane {
|
|||||||
throw new IllegalStateException();
|
throw new IllegalStateException();
|
||||||
stack.pop();
|
stack.pop();
|
||||||
Node node = stack.peek();
|
Node node = stack.peek();
|
||||||
|
|
||||||
NavigationEvent navigating = new NavigationEvent(this, from, NavigationEvent.NAVIGATING);
|
NavigationEvent navigating = new NavigationEvent(this, from, NavigationEvent.NAVIGATING);
|
||||||
fireEvent(navigating);
|
fireEvent(navigating);
|
||||||
node.fireEvent(navigating);
|
node.fireEvent(navigating);
|
||||||
|
|
||||||
setContent(node);
|
setContent(node);
|
||||||
|
|
||||||
NavigationEvent navigated = new NavigationEvent(this, node, NavigationEvent.NAVIGATED);
|
NavigationEvent navigated = new NavigationEvent(this, node, NavigationEvent.NAVIGATED);
|
||||||
fireEvent(navigated);
|
fireEvent(navigated);
|
||||||
node.fireEvent(navigated);
|
node.fireEvent(navigated);
|
||||||
|
@ -55,7 +55,7 @@ account.methods.authlib_injector=authlib-injector
|
|||||||
account.methods.offline=Offline
|
account.methods.offline=Offline
|
||||||
account.methods.yggdrasil=Mojang
|
account.methods.yggdrasil=Mojang
|
||||||
account.missing=No Account
|
account.missing=No Account
|
||||||
account.missing.add=Click the button on the right to add
|
account.missing.add=Click here to add
|
||||||
account.password=Password
|
account.password=Password
|
||||||
account.username=Name
|
account.username=Name
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ account.methods.authlib_injector=authlib-injector 登入
|
|||||||
account.methods.offline=離線模式
|
account.methods.offline=離線模式
|
||||||
account.methods.yggdrasil=正版登入
|
account.methods.yggdrasil=正版登入
|
||||||
account.missing=沒有遊戲帳戶
|
account.missing=沒有遊戲帳戶
|
||||||
account.missing.add=點擊右邊按鈕添加
|
account.missing.add=點擊此處添加帳戶
|
||||||
account.password=密碼
|
account.password=密碼
|
||||||
account.username=使用者名稱
|
account.username=使用者名稱
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ account.methods.authlib_injector=外置登录 (authlib-injector)
|
|||||||
account.methods.offline=离线模式
|
account.methods.offline=离线模式
|
||||||
account.methods.yggdrasil=正版登录
|
account.methods.yggdrasil=正版登录
|
||||||
account.missing=没有游戏账户
|
account.missing=没有游戏账户
|
||||||
account.missing.add=点击右边按钮添加
|
account.missing.add=点击此处添加账户
|
||||||
account.password=密码
|
account.password=密码
|
||||||
account.username=用户名
|
account.username=用户名
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user