Skip to content

Commit 79515c4

Browse files
committed
make 2fa window not too garbage
1 parent 7c93bb6 commit 79515c4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/lol/hyper/customlauncher/login/windows/TwoFactorAuth.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ public void keyTyped(KeyEvent e) {
9292
frame.add(panel);
9393
frame.setLocationRelativeTo(null);
9494

95-
SwingUtilities.invokeLater(()-> frame.setVisible(true));
95+
SwingUtilities.invokeLater(()-> {
96+
frame.pack();
97+
frame.setVisible(true);
98+
});
9699
}
97100
}

0 commit comments

Comments
 (0)