mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 00:50:31 +00:00
Fix download loop
This commit is contained in:
parent
15cb286dcf
commit
2a6e3ac643
1 changed files with 6 additions and 0 deletions
|
@ -135,6 +135,12 @@ public class BrowserTransferModel {
|
|||
BrowserFileTransferMode.COPY,
|
||||
false,
|
||||
progress -> {
|
||||
// Don't update item progress to keep it as finished
|
||||
if (progress == null) {
|
||||
item.getOpenFileSystemModel().getProgress().setValue(null);
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (item.getProgress()) {
|
||||
item.getProgress().setValue(progress);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue