|
|
@ -75,9 +75,7 @@ public class LoginGUI extends JFrame implements ActionListener { |
|
|
|
|
|
|
|
passwordField.addKeyListener(new EnterKeyListener()); |
|
|
|
|
|
|
|
stayLoggedInCheckbox.addActionListener(new ActionListener() { |
|
|
|
@Override |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
stayLoggedInCheckbox.addActionListener(e -> { |
|
|
|
boolean stayLoggedIn = stayLoggedInCheckbox.isSelected(); |
|
|
|
String username = usernameField.getText(); |
|
|
|
// Set stayLoggedIn to false if the checkbox is unchecked |
|
|
@ -85,7 +83,6 @@ public class LoginGUI extends JFrame implements ActionListener { |
|
|
|
stayLoggedIn = false; |
|
|
|
} |
|
|
|
updateStayLoggedIn(username, stayLoggedIn); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|