Skip to content
Snippets Groups Projects
Commit d965fc79 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Fixed #83, Fixed #84

#83  - replace server secret textfield input with dots after saving
#84 - connection alert is not showing again if closed with "OK"-button
parent bdea0c6d
Branches
No related tags found
1 merge request!104merge v_1_2_0 into master
......@@ -250,10 +250,8 @@ public class Controller
Stage dialogStage = (Stage)alert.getDialogPane().getScene().getWindow();
dialogStage.getIcons().add(icon);
dialogStage.initOwner(stage);
dialogStage.setOnCloseRequest((event) -> {
alertIsShowing = false;
});
alert.showAndWait();
alertIsShowing = false;
});
}
}
......
......@@ -54,7 +54,7 @@ public class SettingsController
if(controller.getSettings() != null)
{
textFieldURL.setText(controller.getSettings().getUrl());
textFieldSecret.setText(controller.getSettings().getSecret());
textFieldSecret.setText("******");
textFieldCurrency.setText(controller.getSettings().getCurrency());
if(controller.getSettings().isRestActivated())
{
......@@ -153,6 +153,9 @@ public class SettingsController
Logger.error(e);
AlertGenerator.showAlert(AlertType.ERROR, "Fehler", "", "Beim Speichern der Einstellungen ist ein Fehler aufgetreten", controller.getIcon(), controller.getStage(), null, false);
}
textFieldSecret.setText("******");
controller.refresh(controller.getFilterSettings());
controller.showNotification("Erfolgreich gespeichert");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment