Skip to content

Commit d6080b2

Browse files
committed
Disabled look should only apply to runtime display
Add check that we are not in edit mode before setting disabled look and cursor.
1 parent d0dd5a4 commit d6080b2

File tree

1 file changed

+8
-6
lines changed
  • app/display/representation-javafx/src/main/java/org/csstudio/display/builder/representation/javafx/widgets

1 file changed

+8
-6
lines changed

app/display/representation-javafx/src/main/java/org/csstudio/display/builder/representation/javafx/widgets/JFXBaseRepresentation.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -369,12 +369,14 @@ public void updateOrder()
369369
* @param children list of children nodes under the parent widget
370370
*/
371371
public void setDisabledLook(Boolean enabled, ObservableList<Node> children) {
372-
jfx_node.setCursor(enabled ? Cursor.DEFAULT : Cursors.NO_WRITE);
373-
if (children != null) {
374-
for (Node node : children)
375-
{
376-
Styles.update(node, Styles.NOT_ENABLED, !enabled);
377-
}
372+
if (!toolkit.isEditMode()) {
373+
jfx_node.setCursor(enabled ? Cursor.DEFAULT : Cursors.NO_WRITE);
374+
if (children != null) {
375+
for (Node node : children)
376+
{
377+
Styles.update(node, Styles.NOT_ENABLED, !enabled);
378+
}
379+
}
378380
}
379381
}
380382
}

0 commit comments

Comments
 (0)