mirror of
https://github.com/amir1376/ab-download-manager.git
synced 2025-02-20 11:43:24 +08:00
fix edit download rename change state to paused if it was finished
This commit is contained in:
parent
af60895c9f
commit
cc134bdb5d
@ -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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user