X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=micropeak%2FMicroSave.java;h=b45cd834d3a2c1c1ae557323b8aced57bc9b9020;hp=7879ff90bd8b60289418ac8ea5a92583d04f4daf;hb=ec46adee44ea08120b1940ca55a5fbdf56874bb1;hpb=670034eef48d63cdaec8d271fa93da984ffe2ea9 diff --git a/micropeak/MicroSave.java b/micropeak/MicroSave.java index 7879ff90..b45cd834 100644 --- a/micropeak/MicroSave.java +++ b/micropeak/MicroSave.java @@ -3,7 +3,8 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -24,8 +25,8 @@ import javax.swing.filechooser.FileNameExtensionFilter; import java.io.*; import java.util.concurrent.*; import java.util.*; -import org.altusmetrum.AltosLib.*; -import org.altusmetrum.altosuilib.*; +import org.altusmetrum.altoslib_14.*; +import org.altusmetrum.altosuilib_14.*; public class MicroSave extends JFileChooser { @@ -83,6 +84,7 @@ public class MicroSave extends JFileChooser { } try { save(file, data); + AltosUIPreferences.set_last_logdir(file.getParentFile()); data.set_name(filename); return true; } catch (FileNotFoundException fe) { @@ -101,7 +103,7 @@ public class MicroSave extends JFileChooser { setDialogTitle("Save MicroPeak Data File"); setFileFilter(new FileNameExtensionFilter("MicroPeak data file", "mpd")); - setCurrentDirectory(AltosUIPreferences.logdir()); + setCurrentDirectory(AltosUIPreferences.last_logdir()); setSelectedFile(MicroFile.make()); } }