fix: logout
This commit is contained in:
parent
166e516c67
commit
2475547787
@ -55,7 +55,8 @@ public class ParentMenuController {
|
||||
|
||||
@FXML
|
||||
public void onAusloggenClick(MouseEvent mouseEvent) throws IOException {
|
||||
StartViewApplication.changeScene("workerMenu-view.fxml");
|
||||
AccountMgr.currentUser = null;
|
||||
StartViewApplication.changeScene("login-view.fxml");
|
||||
}
|
||||
|
||||
private void changePage(String page) {
|
||||
|
@ -70,7 +70,8 @@ public class WorkerMenuController {
|
||||
|
||||
@FXML
|
||||
public void onAusloggenClick(MouseEvent mouseEvent) throws IOException {
|
||||
StartViewApplication.changeScene("parentMenu-view.fxml");
|
||||
AccountMgr.currentUser = null;
|
||||
StartViewApplication.changeScene("login-view.fxml");
|
||||
}
|
||||
|
||||
private void changePage(String page) {
|
||||
|
Loading…
Reference in New Issue
Block a user