fix: logout
This commit is contained in:
1 parent
166e516c67
commit
2475547787
2 files changed
+4
-2
No files matched your search
@@ -55,7 +55,8 @@ public class ParentMenuController {
|
|||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
public void onAusloggenClick(MouseEvent mouseEvent) throws IOException {
|
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) {
|
private void changePage(String page) {
|
||||||
|
|||||||
@@ -70,7 +70,8 @@ public class WorkerMenuController {
|
|||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
public void onAusloggenClick(MouseEvent mouseEvent) throws IOException {
|
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) {
|
private void changePage(String page) {
|
||||||
|
|||||||
Reference in new issue
Block a user