mirror of
https://github.com/amir1376/ab-download-manager.git
synced 2025-02-20 11:43:24 +08:00
if user press on download button don't show progress download window if user disabled auto show progress window
This commit is contained in:
parent
e1ed05452c
commit
b7b5bf645f
@ -260,7 +260,6 @@ class AppComponent(
|
|||||||
startNewDownload(
|
startNewDownload(
|
||||||
item = item,
|
item = item,
|
||||||
onDuplicateStrategy = onDuplicate,
|
onDuplicateStrategy = onDuplicate,
|
||||||
openDownloadDialog = true,
|
|
||||||
categoryId = categoryId,
|
categoryId = categoryId,
|
||||||
)
|
)
|
||||||
closeAddDownloadDialog(config.id)
|
closeAddDownloadDialog(config.id)
|
||||||
@ -710,7 +709,6 @@ class AppComponent(
|
|||||||
fun startNewDownload(
|
fun startNewDownload(
|
||||||
item: DownloadItem,
|
item: DownloadItem,
|
||||||
onDuplicateStrategy: OnDuplicateStrategy,
|
onDuplicateStrategy: OnDuplicateStrategy,
|
||||||
openDownloadDialog: Boolean,
|
|
||||||
categoryId: Long?,
|
categoryId: Long?,
|
||||||
) {
|
) {
|
||||||
scope.launch {
|
scope.launch {
|
||||||
@ -723,11 +721,6 @@ class AppComponent(
|
|||||||
launch {
|
launch {
|
||||||
downloadSystem.manualResume(id)
|
downloadSystem.manualResume(id)
|
||||||
}
|
}
|
||||||
if (openDownloadDialog) {
|
|
||||||
launch {
|
|
||||||
openDownloadDialog(id)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user