Skip to content

Commit

Permalink
CSSTUDIO-1920 Improve ordering of lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
abrahamwolk committed Aug 15, 2023
1 parent e02277f commit 8a659f9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ protected void registerListeners()
if (toolkit.isEditMode())
return;

// In runtime mode, handle alarm-sensitive border
final Optional<WidgetProperty<Boolean>> alarm_sens = model_widget.checkProperty(propBorderAlarmSensitive);
final Optional<WidgetProperty<VType>> value = model_widget.checkProperty(runtimePropPVValue);

if (value.isPresent() && model_widget instanceof PVWidget) {
Expand Down Expand Up @@ -201,6 +199,8 @@ protected void registerListeners()
});
}

// In runtime mode, handle alarm-sensitive border
final Optional<WidgetProperty<Boolean>> alarm_sens = model_widget.checkProperty(propBorderAlarmSensitive);
if (alarm_sens.isPresent() && value.isPresent())
{
value_prop = value.get();
Expand Down

0 comments on commit 8a659f9

Please sign in to comment.