if user press on download button don't show progress download window if user disabled auto show progress window

This commit is contained in:
AmirHossein Abdolmotallebi 2024-12-01 19:36:04 +03:30
parent e1ed05452c
commit b7b5bf645f

View File

@ -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)
}
}
} }
} }