fix: logout

This commit is contained in:
Johannes Kantz 2023-02-05 08:58:34 +01:00
parent 166e516c67
commit 2475547787
2 changed files with 4 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {