diff --git a/docs/changelog.md b/docs/changelog.md index b8f2101f..b1d8f812 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -10,6 +10,7 @@ - Added new update channel: Beta - The dependencies section is no longer required when contents are imported, this cleans up .toml files immensely and makes it easier to modify and replace content - Dependency replacement now contains content that is currently being imported (fr #124) +- Added info message to explain that NoSuchFileExceptions that occurred when restoring the initial backup can be ignored ### Bug fixes - Fixed NullPointException when no `requires_pictures` key was set in any mod map inside the `.toml` file when mods where imported diff --git a/docs/changelog_dev.md b/docs/changelog_dev.md index 902413cb..d7450ba1 100644 --- a/docs/changelog_dev.md +++ b/docs/changelog_dev.md @@ -4,6 +4,7 @@ ### Other - Dependency replacement now contains content that is currently being imported (fr #124) +- Added info message to explain that NoSuchFileExceptions that occurred when restoring the initial backup can be ignored ## [v4.9.0-beta2] diff --git a/src/main/java/com/github/lmh01/mgt2mt/util/Backup.java b/src/main/java/com/github/lmh01/mgt2mt/util/Backup.java index 2f8732d6..d3cb0fb1 100644 --- a/src/main/java/com/github/lmh01/mgt2mt/util/Backup.java +++ b/src/main/java/com/github/lmh01/mgt2mt/util/Backup.java @@ -149,6 +149,7 @@ public static void restoreBackup(boolean initialBackup, boolean showMessages) { restoreImages(); if (showMessages) { TextAreaHelper.appendText(I18n.INSTANCE.get("dialog.backup.restoreBackup.initialBackup.restored")); + TextAreaHelper.appendText(I18n.INSTANCE.get("dialog.backup.restoreBackup.initialBackup.restored.note")); JOptionPane.showMessageDialog(null, I18n.INSTANCE.get("dialog.backup.restoreBackup.initialBackup.restored"), I18n.INSTANCE.get("dialog.backup.restoreBackup.restored"), JOptionPane.INFORMATION_MESSAGE); } } else { diff --git a/src/main/resources/locale/de.txt b/src/main/resources/locale/de.txt index 90fb8085..c3d371ae 100644 --- a/src/main/resources/locale/de.txt +++ b/src/main/resources/locale/de.txt @@ -546,6 +546,7 @@ dialog.backup.backupFailedTitle|Backup fehlgeschlagen dialog.backup.unableToCreateBackup|Backup kann nicht erstellt werden. dialog.backup.unableToCreateBackup.fileNotFound|Datei nicht gefunden: Bitte überprüfe, ob der mgt2-Ordner richtig eingestellt ist. dialog.backup.restoreBackup.initialBackup.restored|Das Initiale-Backup wurde wiederhergestellt. +dialog.backup.restoreBackup.initialBackup.restored.note|Hinweis: Falls NoSuchFileExceptions aufgetreten sind können diese ignoriert werden. dialog.backup.restoreBackup.latestBackup.restored|Das neueste Backup wurde wiederhergestellt. dialog.backup.restoreBackup.initialBackup.notRestored|Das Initiale-Backup konnte nicht wiederhergestellt werden:
Die Backupdatei(en) fehlen. dialog.backup.restoreBackup.latestBackup.notRestored|Die letzte Sicherung konnte nicht wiederhergestellt werden:
Die Backupdatei(en) fehlen. diff --git a/src/main/resources/locale/en.txt b/src/main/resources/locale/en.txt index 43c29ea7..c1fb90b8 100644 --- a/src/main/resources/locale/en.txt +++ b/src/main/resources/locale/en.txt @@ -546,6 +546,7 @@ dialog.backup.backupFailedTitle|Backup failed dialog.backup.unableToCreateBackup|Unable to create backup. dialog.backup.unableToCreateBackup.fileNotFound|File not found: Please check if your mgt2 folder is set correctly. dialog.backup.restoreBackup.initialBackup.restored|The initial backup has been restored. +dialog.backup.restoreBackup.initialBackup.restored.note|Note: If NoSuchFileExceptions occurred they can be ignored. dialog.backup.restoreBackup.latestBackup.restored|The latest backup has been restored. dialog.backup.restoreBackup.initialBackup.notRestored|The initial backup could not be restored.
The initial backup file(s) are missing. dialog.backup.restoreBackup.latestBackup.notRestored|The latest backup could not be restored.
The initial backup file(s) are missing.