mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Small fixes
This commit is contained in:
parent
44d33d32f4
commit
d4ae4abe61
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue