diff --git a/rs/src/watch_directory.rs b/rs/src/watch_directory.rs index 08c0c1f..0d6dea1 100644 --- a/rs/src/watch_directory.rs +++ b/rs/src/watch_directory.rs @@ -51,10 +51,7 @@ pub fn watch_directory( let first_path = paths_cached.first().unwrap(); let is_dir = PathBuf::from(first_path).is_dir(); - if is_dir { - println!("Ignored path cached {first_path} because it is a dir"); - } else { - println!("Sending single file event to Kotlin side"); + if !is_dir { notifier.detected_change(paths_cached.to_vec()); } } else if !paths_cached.is_empty() { diff --git a/src/main/kotlin/com/jetpackduba/gitnuro/ui/drag_sorting/RowDragSorting.kt b/src/main/kotlin/com/jetpackduba/gitnuro/ui/drag_sorting/RowDragSorting.kt index e702b9b..920d162 100644 --- a/src/main/kotlin/com/jetpackduba/gitnuro/ui/drag_sorting/RowDragSorting.kt +++ b/src/main/kotlin/com/jetpackduba/gitnuro/ui/drag_sorting/RowDragSorting.kt @@ -134,7 +134,6 @@ class HorizontalDragDropState internal constructor( val startOffset = draggingItem.offset + draggingItemOffset val endOffset = startOffset + draggingItem.size val middleOffset = startOffset + (endOffset - startOffset) / 2f - println("Middle offset is $middleOffset") val targetItem = state.layoutInfo.visibleItemsInfo.find { item -> middleOffset.toInt() in item.offset..item.offsetEnd && @@ -292,7 +291,6 @@ class VerticalDragDropState internal constructor( @Composable fun Modifier.horizontalDragContainer(dragDropState: HorizontalDragDropState, onDraggedTab: (Int) -> Unit): Modifier { val state = rememberDraggableState { - println("Dragging horizontally $it") dragDropState.onDrag(Offset(it, 0f)) } @@ -309,7 +307,6 @@ fun Modifier.horizontalDragContainer(dragDropState: HorizontalDragDropState, onD } }, onDragStopped = { - println("On drag stopped") dragDropState.onDragInterrupted() }, )