Skip to content
Snippets Groups Projects
Commit 2a603faa authored by tobias's avatar tobias
Browse files

Add Close Hook to ViewController

parent eafe22cb
Branches
No related tags found
No related merge requests found
...@@ -170,6 +170,7 @@ public class MainMenuBarController implements EventHandler<ActionEvent>, Initial ...@@ -170,6 +170,7 @@ public class MainMenuBarController implements EventHandler<ActionEvent>, Initial
{ {
ProfileViewController controller = new ProfileViewController(mvc.getStage(), mvc.getProject()); ProfileViewController controller = new ProfileViewController(mvc.getStage(), mvc.getProject());
controller.getStage().showAndWait(); controller.getStage().showAndWait();
mvc.setTitle();
}); });
} }
......
...@@ -189,7 +189,7 @@ public class MainViewController extends ViewController implements IMainViewContr ...@@ -189,7 +189,7 @@ public class MainViewController extends ViewController implements IMainViewContr
} }
} }
private void setTitle() { void setTitle() {
if (project != null && Profile.currentProfile() != null) { if (project != null && Profile.currentProfile() != null) {
getStage().setTitle(Localization.getString(Strings.UI_Window_Main_Title, project.getRef().getName(), getStage().setTitle(Localization.getString(Strings.UI_Window_Main_Title, project.getRef().getName(),
Profile.currentProfile().getRef().getName())); Profile.currentProfile().getRef().getName()));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment