mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +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 {
|
||||
button("Add CorDapp") {
|
||||
setOnAction {
|
||||
val app = (chooser.showOpenDialog(null) ?: return@setOnAction).toPath()
|
||||
if (!cordapps.contains(app)) {
|
||||
cordapps.add(app)
|
||||
(chooser.showOpenMultipleDialog(null) ?: return@setOnAction).forEach {
|
||||
val app = it.toPath()
|
||||
if (!cordapps.contains(app)) {
|
||||
cordapps.add(app)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user