fix edit download rename change state to paused if it was finished

This commit is contained in:
AmirHossein Abdolmotallebi 2024-11-22 01:59:03 +03:30
parent af60895c9f
commit cc134bdb5d

View File

@ -230,7 +230,9 @@ class DownloadJob(
val last = downloadItem.copy()
downloadItem.apply(updater)
if (downloadManager.calculateOutputFile(last) != downloadManager.calculateOutputFile(downloadItem)) {
pause()
if (isDownloadActive.value) {
pause()
}
// destination should be closed for now!
initializeDestination()
}