Skip to content

Commit 4d3ae5b

Browse files
committed
fix quick copy and move options
1 parent 760119d commit 4d3ae5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/com/raival/compose/file/explorer/screen/main/tab/files/ui/BottomOptionsBar.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ fun BottomOptionsBar(tab: FilesTab) {
9292
IconButton(
9393
modifier = Modifier.weight(1f),
9494
onClick = {
95-
tab.unselectAllFiles()
9695
globalClass.taskManager.addTask(
9796
CopyTask(
9897
tab.selectedFiles.values.toList(),
9998
deleteSourceFiles = true
10099
)
101100
)
101+
tab.unselectAllFiles()
102102
}
103103
) {
104104
Icon(imageVector = Icons.Rounded.ContentCut, contentDescription = null)
@@ -108,13 +108,13 @@ fun BottomOptionsBar(tab: FilesTab) {
108108
IconButton(
109109
modifier = Modifier.weight(1f),
110110
onClick = {
111-
tab.unselectAllFiles()
112111
globalClass.taskManager.addTask(
113112
CopyTask(
114113
tab.selectedFiles.values.toList(),
115114
deleteSourceFiles = false
116115
)
117116
)
117+
tab.unselectAllFiles()
118118
}
119119
) {
120120
Icon(imageVector = Icons.Rounded.FileCopy, contentDescription = null)

0 commit comments

Comments
 (0)