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(
item = item,
onDuplicateStrategy = onDuplicate,
openDownloadDialog = true,
categoryId = categoryId,
)
closeAddDownloadDialog(config.id)
@ -710,7 +709,6 @@ class AppComponent(
fun startNewDownload(
item: DownloadItem,
onDuplicateStrategy: OnDuplicateStrategy,
openDownloadDialog: Boolean,
categoryId: Long?,
) {
scope.launch {
@ -723,11 +721,6 @@ class AppComponent(
launch {
downloadSystem.manualResume(id)
}
if (openDownloadDialog) {
launch {
openDownloadDialog(id)
}
}
}
}