# Clear mask popup in segmentation

**URL:** <https://discourse.slicer.org/t/clear-mask-popup-in-segmentation/22013>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [February 17, 2022, 8:11am UTC](https://discourse.slicer.org/t/clear-mask-popup-in-segmentation/22013 "2022-02-17T08:11:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shahnawaz\_Vora](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/shahnawaz_vora/32/13667_2.png) [@Shahnawaz\_Vora](https://discourse.slicer.org/u/Shahnawaz_Vora)\
**Post date:** [February 17, 2022, 8:11am UTC](https://discourse.slicer.org/t/clear-mask-popup-in-segmentation/22013/1 "2022-02-17T08:11:37Z")

</div>

Operating system: windows 10  
Slicer version: 4.13

Actual behavior:  
Currently on right clicking and in menu select clear selected segments it will show pop up and prompt to user for clear the selected mask(Yes/No) .

Expected behavior:  
I want to disable the pop up shows up on clicking the (clear selected segments) menu and clear selected mask directly without showing any pop.

 ![Screenshot (12)](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/9/b9312c0dfef2c336871330cc1913928e19f04095.png)  
 ![Screenshot (13)](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/7/e7b07c18af0fe6d01aa529a8cfc272e0909703c6.png)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 18, 2022, 4:26am UTC](https://discourse.slicer.org/t/clear-mask-popup-in-segmentation/22013/2 "2022-02-18T04:26:16Z")

</div>

We would need to understand why do you need to clear segments so often that this popup gets in the way. Can you tell a bit more about your use case?

---

<div class="post-metadata">

**Author:** ![Dwij\_Mistry](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dwij_mistry/32/15265_2.png) [@Dwij\_Mistry](https://discourse.slicer.org/u/Dwij_Mistry)\
**Post date:** [February 18, 2022, 4:53am UTC](https://discourse.slicer.org/t/clear-mask-popup-in-segmentation/22013/3 "2022-02-18T04:53:44Z")

</div>

> [@lassoan](#):
>
> We would need to understand why do you need to clear segments so often

No, user will not use if often but whenever it required they can.

> [@lassoan](#):
>
> that this popup gets in the way

This is creating an extra click for user that we are trying to eliminate.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 18, 2022, 5:00am UTC](https://discourse.slicer.org/t/clear-mask-popup-in-segmentation/22013/4 "2022-02-18T05:00:35Z")

</div>

It would be better to address the root cause (not require the user to clear the segments in the first place), but if you don’t have any specific use case in mind and you are sure that it will be a problem for users then you can set `DontShowAgainVisible` to true and set a valid `DontShowAgainSettingsKey` on the popup.
