changeset 34:06b4a235d4bc

Commit database to disk on card save via CTRL+S
author Fox
date Thu, 07 Jul 2022 17:26:33 +0200
parents 2c1f4dc0513f
children 8cc09761cf18
files lib/lucene-core-3.0.3.jar src/junotu/TabEdit.java
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/lucene-core-3.0.3.jar	Wed May 11 02:43:31 2022 +0200
+++ b/lib/lucene-core-3.0.3.jar	Thu Jul 07 17:26:33 2022 +0200
@@ -1,1 +1,1 @@
-/mnt/portable/JavaLibraries/lucene-core-3.0.3.jar
\ No newline at end of file
+/mnt/Files/Programs/JavaLibraries/lucene-core-3.0.3.jar
\ No newline at end of file
--- a/src/junotu/TabEdit.java	Wed May 11 02:43:31 2022 +0200
+++ b/src/junotu/TabEdit.java	Thu Jul 07 17:26:33 2022 +0200
@@ -228,6 +228,11 @@
 				   public void actionPerformed( ActionEvent e )
 				   {
 				       buttonClickedSave( true );
+				       try {
+					   Main.database.databaseCommit();
+				       } catch( Exception ex ) {
+					   System.out.print( "Failed to write database: "+ex.getMessage()+"\n" );
+				       }
 				   }
 			       },
 			       null,