Update Queue.java

This commit is contained in:
xfarrow 2023-07-24 12:37:28 +02:00
parent f54fef2f0d
commit 130e9b821c

View File

@ -116,7 +116,17 @@ public class Queue extends JFrame implements IQueueFrame {
}
else if(transferProgress.getTransferStatus() == TransferProgress.END) {
// Do nothing
Integer tableIndex = controller.getTableIndex(transferProgress);
if(tableIndex == null) {
controller.putTableIndex(transferProgress,
addRow(transferProgress.getSource(),
transferProgress.getDestination(),
transferProgress.getOperation() == SftpProgressMonitor.GET? "Download" : "Upload",
100));
}
else {
updateRow(tableIndex, 100);
}
}
}