|
|
@ -51,6 +51,10 @@ public class LoginGUI extends JFrame implements ActionListener { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
boolean stayLoggedIn = stayLoggedInCheckbox.isSelected(); |
|
|
|
String username = usernameField.getText(); |
|
|
|
// Set stayLoggedIn to false if the checkbox is unchecked |
|
|
|
if (!stayLoggedInCheckbox.isSelected()) { |
|
|
|
stayLoggedIn = false; |
|
|
|
} |
|
|
|
updateStayLoggedIn(username, stayLoggedIn); |
|
|
|
} |
|
|
|
}); |
|
|
|