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) {
|
||||
try {
|
||||
Preferences prefs = Preferences.userNodeForPackage(GuiConfigurationEditorWorkspace.class);
|
||||
Preferences prefs = Preferences.userRoot().node("de/gecheckt/pdf-umbenenner");
|
||||
prefs.put("lastConfigPath", configFilePath.toAbsolutePath().toString());
|
||||
LOG.debug("GUI-Editor: Letzter Konfigurationspfad gespeichert: {}", configFilePath);
|
||||
} catch (Exception exception) {
|
||||
@@ -3425,7 +3425,7 @@ public final class GuiConfigurationEditorWorkspace {
|
||||
*/
|
||||
public void autoLoadLastConfiguration() {
|
||||
try {
|
||||
Preferences prefs = Preferences.userNodeForPackage(GuiConfigurationEditorWorkspace.class);
|
||||
Preferences prefs = Preferences.userRoot().node("de/gecheckt/pdf-umbenenner");
|
||||
String lastPath = prefs.get("lastConfigPath", null);
|
||||
|
||||
if (lastPath == null) {
|
||||
|
||||
Reference in New Issue
Block a user