Skip to content

Commit 721f7c0

Browse files
committed
Minor change to buttons and remove placeholder picture
1 parent 2229dee commit 721f7c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/kotlin/view/component/BatchProcessTab.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class BatchProcessTab : Fragment("Batch Processing") {
2020
private val batchProcessor: BatchProcessorModel by inject()
2121
private val engine: FileController by inject()
2222

23-
private val focusedImageProperty = SimpleObjectProperty(Image("./test_image.png"))
23+
private val focusedImageProperty: SimpleObjectProperty<Image> = SimpleObjectProperty()
2424
private var focusedImage by focusedImageProperty
2525

2626
private val imagesListView = listview(batchProcessor.transformedImages) {
@@ -81,17 +81,17 @@ class BatchProcessTab : Fragment("Batch Processing") {
8181

8282
bottom = buttonbar {
8383
button("Import").action { importImages() }
84-
button("Apply").action { batchProcessor.apply() }
8584
button("Remove").action {
8685
batchProcessor.remove(
8786
*imagesListView.selectionModel.selectedIndices.toIntArray()
8887
)
8988
}
89+
button("Apply All").action { batchProcessor.apply() }
90+
button("Export All").action { exportImages() }
9091
button("Revert").action {
9192
batchProcessor.revert()
9293
engine.revert()
9394
}
94-
button("Export").action { exportImages() }
9595
padding = Insets(15.0)
9696
}
9797
},

0 commit comments

Comments
 (0)