mirror of
https://github.com/corda/corda.git
synced 2024-12-20 05:28:21 +00:00
series0ne/corda-demobench-cordapp-select (#3543)
Adds the ability to multi-select CorDapp JARs for node profiles.
This commit is contained in:
parent
2de789877a
commit
6a895401c5
@ -145,9 +145,11 @@ class NodeTabView : Fragment() {
|
|||||||
hbox {
|
hbox {
|
||||||
button("Add CorDapp") {
|
button("Add CorDapp") {
|
||||||
setOnAction {
|
setOnAction {
|
||||||
val app = (chooser.showOpenDialog(null) ?: return@setOnAction).toPath()
|
(chooser.showOpenMultipleDialog(null) ?: return@setOnAction).forEach {
|
||||||
if (!cordapps.contains(app)) {
|
val app = it.toPath()
|
||||||
cordapps.add(app)
|
if (!cordapps.contains(app)) {
|
||||||
|
cordapps.add(app)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user