# Hidden Folder - UI Thread

**URL:** <https://forum.universal-robots.com/t/hidden-folder-ui-thread/22825>\
**Category:** URCap Development\
**Created:** [July 21, 2022, 6:09pm UTC](https://forum.universal-robots.com/t/hidden-folder-ui-thread/22825 "2022-07-21T18:09:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![roman.reiner](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/roman.reiner/32/1294_2.png) [@roman.reiner](https://forum.universal-robots.com/u/roman.reiner)\
**Post date:** [July 21, 2022, 6:09pm UTC](https://forum.universal-robots.com/t/hidden-folder-ui-thread/22825/1 "2022-07-21T18:09:18Z")

</div>

Hi,

Is there a way to lock a folder from being open in a URCap? I am looking at creating a folder that is locked. When I try to create a thread to prevent the folder from being opened I get an error for UI objects only can be updated within the UI thread.

Is it possible to update the UI thread constantly to set the folder hidden to true?
