소스 검색

icons fix, need to be more improved

Milan Jurkulak 1 년 전
부모
커밋
85c36ed5e5
1개의 변경된 파일과 6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 3
      composeApp/src/commonMain/kotlin/org/mjdev/desktop/components/desktoppanel/applets/DesktopPanelFavoriteApps.kt

+ 6 - 3
composeApp/src/commonMain/kotlin/org/mjdev/desktop/components/desktoppanel/applets/DesktopPanelFavoriteApps.kt

@@ -33,10 +33,13 @@ fun DesktopPanelFavoriteApps(
     onAppClick: (app: IApp) -> Unit = {},
     onContextMenuClick: (app: IApp) -> Unit = {}
 ) = withDesktopContext {
-    val apps: List<IApp> by flowBlock(emptyList(), processManager.size) { appsManager.favoriteApps }
-    Box(
-        modifier = modifier
+    val apps: List<IApp> by flowBlock(
+        emptyList(),
+        processManager.size
     ) {
+        appsManager.favoriteApps
+    }
+    Box(modifier = modifier) {
         LazyRow(
             modifier = Modifier.wrapContentHeight(),
             horizontalArrangement = Arrangement.Start,