mirror of
https://github.com/amir1376/ab-download-manager.git
synced 2025-02-20 11:43:24 +08:00
refactor home page: don't use update function for window size
This commit is contained in:
parent
c24f272290
commit
372ee77f30
@ -271,7 +271,7 @@ class HomeComponent(
|
||||
)
|
||||
val windowSize = _windowSize.asStateFlow()
|
||||
fun setWindowSize(dpSize: DpSize) {
|
||||
_windowSize.update { dpSize }
|
||||
_windowSize.value = dpSize
|
||||
}
|
||||
|
||||
private val _categoriesWidth = homePageStateToPersist.mapTwoWayStateFlow(
|
||||
|
Loading…
x
Reference in New Issue
Block a user