Bugfix: Preferences-Knoten fuer lastConfigPath versionsunabhaengig
This commit is contained in:
+2
-2
@@ -3410,7 +3410,7 @@ public final class GuiConfigurationEditorWorkspace {
|
|||||||
*/
|
*/
|
||||||
private void saveLastConfigurationPath(Path configFilePath) {
|
private void saveLastConfigurationPath(Path configFilePath) {
|
||||||
try {
|
try {
|
||||||
Preferences prefs = Preferences.userNodeForPackage(GuiConfigurationEditorWorkspace.class);
|
Preferences prefs = Preferences.userRoot().node("de/gecheckt/pdf-umbenenner");
|
||||||
prefs.put("lastConfigPath", configFilePath.toAbsolutePath().toString());
|
prefs.put("lastConfigPath", configFilePath.toAbsolutePath().toString());
|
||||||
LOG.debug("GUI-Editor: Letzter Konfigurationspfad gespeichert: {}", configFilePath);
|
LOG.debug("GUI-Editor: Letzter Konfigurationspfad gespeichert: {}", configFilePath);
|
||||||
} catch (Exception exception) {
|
} catch (Exception exception) {
|
||||||
@@ -3425,7 +3425,7 @@ public final class GuiConfigurationEditorWorkspace {
|
|||||||
*/
|
*/
|
||||||
public void autoLoadLastConfiguration() {
|
public void autoLoadLastConfiguration() {
|
||||||
try {
|
try {
|
||||||
Preferences prefs = Preferences.userNodeForPackage(GuiConfigurationEditorWorkspace.class);
|
Preferences prefs = Preferences.userRoot().node("de/gecheckt/pdf-umbenenner");
|
||||||
String lastPath = prefs.get("lastConfigPath", null);
|
String lastPath = prefs.get("lastConfigPath", null);
|
||||||
|
|
||||||
if (lastPath == null) {
|
if (lastPath == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user