Skip to content

Commit d2fba8b

Browse files
committed
Do not launch comparison dialog if live PV is not connected
1 parent 24f8a08 commit d2fba8b

File tree

1 file changed

+2
-0
lines changed
  • app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/snapshot

1 file changed

+2
-0
lines changed

app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/snapshot/VDeltaCellEditor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ public void updateItem(T item, boolean empty) {
9696
comparisonDialog.show();
9797
});
9898
} else {
99+
// Do not handle mouse clicked, e.g. if live PV is disconnected.
100+
setOnMouseClicked(e -> {});
99101
String percentage = Utilities.deltaValueToPercentage(pair.value, pair.base);
100102
if (!percentage.isEmpty() && showDeltaPercentage) {
101103
Formatter formatter = new Formatter();

0 commit comments

Comments
 (0)