Skip to content

Commit

Permalink
Added info message to explain that NoSuchFileExceptions can be ignore…
Browse files Browse the repository at this point in the history
…d when restoring intitial backup (#123)
  • Loading branch information
LMH01 committed Feb 28, 2023
1 parent 6802264 commit bc68404
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/changelog_dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/github/lmh01/mgt2mt/util/Backup.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/locale/de.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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|<html>Das Initiale-Backup konnte nicht wiederhergestellt werden:<br>Die Backupdatei(en) fehlen.
dialog.backup.restoreBackup.latestBackup.notRestored|<html>Die letzte Sicherung konnte nicht wiederhergestellt werden:<br>Die Backupdatei(en) fehlen.
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/locale/en.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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|<html>The initial backup could not be restored.<br>The initial backup file(s) are missing.
dialog.backup.restoreBackup.latestBackup.notRestored|<html>The latest backup could not be restored.<br>The initial backup file(s) are missing.
Expand Down

0 comments on commit bc68404

Please sign in to comment.