Option to hide Save Password

https://igniterealtime.org/issues/browse/SPARK-1640
This commit is contained in:
wroot
2015-10-16 22:08:13 +03:00
parent 719fe48281
commit 819dbfcdcf
4 changed files with 9 additions and 2 deletions

View File

@ -397,7 +397,7 @@ public class LoginDialog {
new GridBagConstraints(1, 1, 1, 1,
1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,
new Insets(5, 5, 0, 5), 0, 0));
add(passwordLabel,
new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0,
GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 5, 0));
@ -424,9 +424,11 @@ public class LoginDialog {
add(headerLabel,
new GridBagConstraints(0, 5, 2, 1, 1.0, 0.0,
GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0));
if(!Default.getBoolean("HIDE_SAVE_PASSWORD")) {
add(savePasswordBox,
new GridBagConstraints(1, 5, 2, 1, 1.0, 0.0,
GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 0, 5), 0, 0));
}
add(autoLoginBox,
new GridBagConstraints(1, 6, 2, 1, 1.0, 0.0,
GridBagConstraints.EAST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 0, 5), 0, 0));