Bugfix: Preferences-Knoten fuer lastConfigPath versionsunabhaengig

This commit is contained in:
2026-05-07 14:57:20 +02:00
parent 368cb81b56
commit 4a40dee5cd
@@ -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) {