From 59087e16afe678d2957b4bfe6a145327586d6016 Mon Sep 17 00:00:00 2001 From: sowgro Date: Fri, 2 Jun 2023 12:53:28 -0400 Subject: fix close button --- src/devmenu/NotesEditor.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/devmenu/NotesEditor.java b/src/devmenu/NotesEditor.java index e94ff2e..64365da 100644 --- a/src/devmenu/NotesEditor.java +++ b/src/devmenu/NotesEditor.java @@ -92,10 +92,15 @@ public class NotesEditor private void stop() { + try { mediaPlayer.stop(); diff.numBeats = (int)timer.time(); timer = null; writer.close(); help.setText(t1); + } + catch (Exception e) + { + } } } \ No newline at end of file -- cgit v1.2.3