Skip to content

Commit d4ae4ab

Browse files
committed
Small fixes
1 parent 44d33d3 commit d4ae4ab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/src/main/java/io/xpipe/app/update/UpdateHandler.java

+5
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ protected UpdateHandler(boolean startBackgroundThread) {
7272
preparedUpdate.setValue(null);
7373
}
7474

75+
// Check if file has been deleted
76+
if (preparedUpdate.getValue() != null && preparedUpdate.getValue().getFile() != null && !Files.exists(preparedUpdate.getValue().getFile())) {
77+
preparedUpdate.setValue(null);
78+
}
79+
7580
preparedUpdate.addListener((c, o, n) -> {
7681
AppCache.update("preparedUpdate", n);
7782
});

0 commit comments

Comments
 (0)