Check Clock node is found before trying to hide (#736)
This commit is contained in:
parent
61af15a6c5
commit
f6679cc4f1
|
@ -10,7 +10,7 @@ sub init()
|
||||||
|
|
||||||
if get_user_setting("ui.design.hideclock") = "true"
|
if get_user_setting("ui.design.hideclock") = "true"
|
||||||
clockNode = findNodeBySubtype(m.top, "clock")
|
clockNode = findNodeBySubtype(m.top, "clock")
|
||||||
clockNode[0].parent.removeChild(clockNode[0].node)
|
if clockNode[0] <> invalid then clockNode[0].parent.removeChild(clockNode[0].node)
|
||||||
end if
|
end if
|
||||||
end sub
|
end sub
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user