2
0

Java Client: Don't disable buttons when password is blank

This would be better fixed by having native return an empty string
instead of null, but I don't know what sort of side effects that would
have elsewhere
This commit is contained in:
Michael Ziminsky (Z) 2019-05-05 10:49:39 -07:00
parent 63c211922f
commit 900ce4baa3

View File

@ -950,11 +950,11 @@ public class UserContentPanel extends JPanel implements MasterPassword.Listener,
resultField.setText( EACH_CHARACTER.matcher( result ).replaceAll( "" ) ); resultField.setText( EACH_CHARACTER.matcher( result ).replaceAll( "" ) );
else else
resultField.setText( result ); resultField.setText( result );
settingsButton.setEnabled( result != null ); settingsButton.setEnabled( site != null );
questionsButton.setEnabled( result != null ); questionsButton.setEnabled( site != null );
editButton.setEnabled( result != null ); editButton.setEnabled( site != null );
keyButton.setEnabled( result != null ); keyButton.setEnabled( site != null );
deleteButton.setEnabled( result != null ); deleteButton.setEnabled( site != null );
} ); } );
} }