fix(archive): improve robustness against missing source files and re-scan on dialog open

This commit is contained in:
Thomas
2026-05-05 18:55:56 +02:00
parent b24bb15216
commit 2b60457a95
2 changed files with 24 additions and 9 deletions
+5 -1
View File
@@ -1467,7 +1467,11 @@ public class Main extends JFrame {
archiveService.moveToArchiveWithProgress(folder, name, update);
return true;
} catch (IOException ex) {
ex.printStackTrace();
SwingUtilities.invokeLater(() -> {
JOptionPane.showMessageDialog(dialog,
"Failed to archive '" + name + "':\n" + ex.getMessage(),
"Archive Error", JOptionPane.ERROR_MESSAGE);
});
return false;
}
});