Skip to content

Commit

Permalink
make 2fa window not too garbage
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperdefined committed Apr 11, 2023
1 parent 7c93bb6 commit 79515c4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ public void keyTyped(KeyEvent e) {
frame.add(panel);
frame.setLocationRelativeTo(null);

SwingUtilities.invokeLater(()-> frame.setVisible(true));
SwingUtilities.invokeLater(()-> {
frame.pack();
frame.setVisible(true);
});
}
}

0 comments on commit 79515c4

Please sign in to comment.