Skip to content
Snippets Groups Projects
Commit 8ff93cf6 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Do not save twice on settings window close

parent 59db1ae1
No related branches found
No related tags found
No related merge requests found
...@@ -111,10 +111,8 @@ public class GlobalSettingsViewController extends NVC implements IGlobalSettings ...@@ -111,10 +111,8 @@ public class GlobalSettingsViewController extends NVC implements IGlobalSettings
// Button Listener // Button Listener
@FXML @FXML
private void finishButtonHandler(ActionEvent event) { private void finishButtonHandler(ActionEvent event) {
if (onFinish()) {
getStageContainer().ifPresent(NVCStage::close); getStageContainer().ifPresent(NVCStage::close);
} }
}
/** /**
* Speichert alle Informationen. * Speichert alle Informationen.
......
...@@ -96,10 +96,8 @@ public class ProjectSettingsViewController extends NVC implements IProjectSettin ...@@ -96,10 +96,8 @@ public class ProjectSettingsViewController extends NVC implements IProjectSettin
// Button Listener // Button Listener
@FXML @FXML
private void finishButtonHandler(ActionEvent event) { private void finishButtonHandler(ActionEvent event) {
if (onFinish()) {
getStageContainer().ifPresent(NVCStage::close); getStageContainer().ifPresent(NVCStage::close);
} }
}
/** /**
* Speichert alle Informationen. * Speichert alle Informationen.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment