Check Clock node is found before trying to hide (#736)

This commit is contained in:
Neil Burrows 2022-08-12 07:48:14 +01:00 committed by GitHub
parent 61af15a6c5
commit f6679cc4f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ sub init()
if get_user_setting("ui.design.hideclock") = "true"
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 sub