mirror of
https://github.com/amir1376/ab-download-manager.git
synced 2025-02-20 11:43:24 +08:00
fix thread count can't be set to 1 (#375)
This commit is contained in:
parent
f627d9064c
commit
e16055941a
@ -283,7 +283,7 @@ class AddSingleDownloadComponent(
|
|||||||
it ?: 0
|
it ?: 0
|
||||||
},
|
},
|
||||||
unMap = {
|
unMap = {
|
||||||
it.takeIf { it > 1 }
|
it.takeIf { it >= 1 }
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
range = 0..ThreadCountLimitation.MAX_ALLOWED_THREAD_COUNT,
|
range = 0..ThreadCountLimitation.MAX_ALLOWED_THREAD_COUNT,
|
||||||
|
@ -196,7 +196,7 @@ class EditDownloadState(
|
|||||||
},
|
},
|
||||||
unMap = {
|
unMap = {
|
||||||
copy(
|
copy(
|
||||||
preferredConnectionCount = it.takeIf { it > 1 }
|
preferredConnectionCount = it.takeIf { it >= 1 }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user