Skip to content

Commit 539bb4a

Browse files
authored
delete residual files after download
1 parent 7886eb0 commit 539bb4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/kotlin/org/cosmicide/fragment/EditorFragment.kt

+1
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ class EditorFragment : BaseBindingFragment<FragmentEditorBinding>() {
362362
}
363363
try {
364364
artifact.downloadArtifact(project.libDir)
365+
project.libDir.walk().filter { it.extension != "jar" }.forEach { it.delete() }
365366
sheet.dismiss()
366367
} catch (e: Exception) {
367368
e.printStackTrace()

0 commit comments

Comments
 (0)