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

used custom Alert for remaining alerts in SplashScreenController

parent 696998c1
No related branches found
No related tags found
1 merge request!213merge v1_6_0 into master
......@@ -139,14 +139,7 @@ public class SplashScreenController extends BaseController implements Styleable
String password = textFieldPassword.getText().trim();
if(password == null || password.isEmpty())
{
AlertGenerator.showAlert(AlertType.WARNING,
Localization.getString(Strings.TITLE_WARNING),
"",
Localization.getString(Strings.WARNING_EMPTY_PASSWORD),
icon,
getStage(),
null,
false);
new CustomAlertController(getStage(), this, AlertType.WARNING, Localization.getString(Strings.TITLE_WARNING), Localization.getString(Strings.WARNING_EMPTY_PASSWORD));
return;
}
......@@ -164,14 +157,8 @@ public class SplashScreenController extends BaseController implements Styleable
catch(IOException e)
{
Logger.error(e);
AlertGenerator.showAlert(AlertType.ERROR,
Localization.getString(Strings.TITLE_ERROR),
"",
Localization.getString(Strings.ERROR_PASSWORD_SAVE),
icon,
getStage(),
null,
false);
new CustomAlertController(getStage(), this, AlertType.WARNING, Localization.getString(Strings.TITLE_ERROR), Localization.getString(Strings.ERROR_PASSWORD_SAVE));
return;
}
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment