Skip to content

Commit 5f4e078

Browse files
committed
InteractiveCommand: save inputs when they change
With this change, individual InteractiveCommands benefit from automatic input parameter persistence without needing to code it by hand. See: https://forum.image.sc/t/how-to-save-interactivecommand-parameter-values/26645/5
1 parent 7d03b51 commit 5f4e078

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/scijava/command/InteractiveCommand.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ public InteractiveCommand(final String... listenerNames) {
9696
public void preview() {
9797
// NB: Interactive commands call run upon any parameter change.
9898
run();
99+
saveInputs();
99100
}
100101

101102
@Override

0 commit comments

Comments
 (0)