mirror of
https://github.com/amir1376/ab-download-manager.git
synced 2025-02-20 11:43:24 +08:00
fix some function name type
This commit is contained in:
parent
3160b46350
commit
bc46e32328
@ -463,7 +463,7 @@ class AppComponent(
|
||||
it.downloadId == id
|
||||
}
|
||||
if (component != null) {
|
||||
component.bringToFromt()
|
||||
component.bringToFront()
|
||||
} else {
|
||||
downloadDialogControl.navigate {
|
||||
val newItems = (it.items.toSet() + SingleDownloadComponent.Config(id)).toList()
|
||||
|
@ -11,7 +11,6 @@ import com.arkivanov.decompose.ComponentContext
|
||||
import ir.amirab.downloader.DownloadManagerEvents
|
||||
import ir.amirab.downloader.downloaditem.DownloadJobStatus
|
||||
import ir.amirab.downloader.utils.ExceptionUtils
|
||||
import ir.amirab.util.FileUtils
|
||||
import ir.amirab.downloader.DownloadManager
|
||||
import ir.amirab.downloader.monitor.*
|
||||
import kotlinx.coroutines.flow.*
|
||||
@ -19,7 +18,6 @@ import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import org.koin.core.component.KoinComponent
|
||||
import org.koin.core.component.inject
|
||||
import java.io.File
|
||||
|
||||
sealed interface SingleDownloadEffects {
|
||||
data object BringToFront : SingleDownloadEffects
|
||||
@ -160,7 +158,7 @@ class SingleDownloadComponent(
|
||||
}
|
||||
}
|
||||
|
||||
fun bringToFromt() {
|
||||
fun bringToFront() {
|
||||
sendEffect(SingleDownloadEffects.BringToFront)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user