aboutsummaryrefslogtreecommitdiff
path: root/src/devmenu/NotesEditor.java
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2023-06-02 12:53:28 -0400
committersowgro <tpoke.ferrari@gmail.com>2023-06-02 12:53:28 -0400
commit59087e16afe678d2957b4bfe6a145327586d6016 (patch)
treebe6d337da908e8b0897516eb372ac2788ae3cb25 /src/devmenu/NotesEditor.java
parent408c42dc788a7d9c218071dea34843b4196fa7c8 (diff)
downloadNPEhero-59087e16afe678d2957b4bfe6a145327586d6016.tar.gz
NPEhero-59087e16afe678d2957b4bfe6a145327586d6016.tar.bz2
NPEhero-59087e16afe678d2957b4bfe6a145327586d6016.zip
fix close button
Diffstat (limited to 'src/devmenu/NotesEditor.java')
-rw-r--r--src/devmenu/NotesEditor.java5
1 files changed, 5 insertions, 0 deletions
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