Small fixes

This commit is contained in:
crschnick 2024-07-16 11:39:14 +00:00
parent 44d33d32f4
commit d4ae4abe61

View file

@ -72,6 +72,11 @@ public abstract class UpdateHandler {
preparedUpdate.setValue(null);
}
// Check if file has been deleted
if (preparedUpdate.getValue() != null && preparedUpdate.getValue().getFile() != null && !Files.exists(preparedUpdate.getValue().getFile())) {
preparedUpdate.setValue(null);
}
preparedUpdate.addListener((c, o, n) -> {
AppCache.update("preparedUpdate", n);
});