Skip to content

Commit 8b16aef

Browse files
Make status box turn red when text does not start with System OK
1 parent 7e899ee commit 8b16aef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/uk.ac.stfc.isis.ibex.opis/resources/stress_rig/stress_rig.opi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ else:
379379
380380
widget.setPropertyValue("text",status)
381381
382-
if status == "System OK":
382+
if status.startswith("System OK"):
383383
widget.setPropertyValue("background_color",ColorFontUtil.getColorFromRGB(255,255,255));
384384
else:
385385
widget.setPropertyValue("background_color",ColorFontUtil.getColorFromRGB(255,127,127));]]></scriptText>

0 commit comments

Comments
 (0)