make window close when timeout expires
All checks were successful
/ Build & Publish (push) Successful in 41s

This commit is contained in:
Daniella / Tove 2024-06-25 07:42:50 +02:00
parent 86ce31b987
commit f54be5dae3
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -38,6 +38,7 @@ public class CBWindow extends JFrame implements WindowListener {
public void waitForClose() { public void waitForClose() {
setVisible(true); setVisible(true);
while(poll()); while(poll());
setVisible(false);
} }
public boolean poll() { public boolean poll() {