# How to disable the clone button?

**URL:** <https://discourse.slicer.org/t/how-to-disable-the-clone-button/18090>\
**Category:** Development\
**Created:** [June 12, 2021, 8:56am UTC](https://discourse.slicer.org/t/how-to-disable-the-clone-button/18090 "2021-06-12T08:56:13Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![OpenSource\_Contri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/opensource_contri/32/11189_2.png) [@OpenSource\_Contri](https://discourse.slicer.org/u/OpenSource_Contri)\
**Post date:** [June 12, 2021, 8:56am UTC](https://discourse.slicer.org/t/how-to-disable-the-clone-button/18090/1 "2021-06-12T08:56:13Z")

</div>

@simonoxen @lassoan  
I have explored these options but I wanted to **disable clone button**. How to go ahead with this?

---

<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:** [June 12, 2021, 12:02pm UTC](https://discourse.slicer.org/t/how-to-disable-the-clone-button/18090/2 "2021-06-12T12:02:16Z")

</div>

Which clone button do you mean? The Clone action in the right-click menu in Data module that duplicates the selected node? Why would you like to disable this option? What is your overall goal?

---

<div class="post-metadata">

**Author:** ![OpenSource\_Contri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/opensource_contri/32/11189_2.png) [@OpenSource\_Contri](https://discourse.slicer.org/u/OpenSource_Contri)\
**Post date:** [June 12, 2021, 2:09pm UTC](https://discourse.slicer.org/t/how-to-disable-the-clone-button/18090/3 "2021-06-12T14:09:30Z")

</div>

**Clone Button screenshot has been attached.**

I wanted to make a clone button there with same functionalities.

Now, It is by right clicking but I want to create a separate button for the same.

 ![Screenshot (218)](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/0/403e0c0967f93410716580ded7d2ea13e98b2e66.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:** [June 12, 2021, 2:37pm UTC](https://discourse.slicer.org/t/how-to-disable-the-clone-button/18090/4 "2021-06-12T14:37:50Z")

</div>

Adding a Clone button is a completely different question. That is discussed in [another topic](https://discourse.slicer.org/t/is-there-an-option-to-duplicate-a-segment/18074/6).

You wrote above that “I wanted to disable clone button”. Would you like to remove (or disable) the “Clone” action in the right-click menu in DICOM module? What is the reason for that? What is your end goal?

---

<div class="post-metadata">

**Author:** ![OpenSource\_Contri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/opensource_contri/32/11189_2.png) [@OpenSource\_Contri](https://discourse.slicer.org/u/OpenSource_Contri)\
**Post date:** [June 12, 2021, 3:12pm UTC](https://discourse.slicer.org/t/how-to-disable-the-clone-button/18090/5 "2021-06-12T15:12:08Z")

</div>

I wanted to disable clone button because I want to add a clone button with same functionalities so that It is visible there. Currently It is there but we have to “Right Click.”.

---

<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:** [June 12, 2021, 5:14pm UTC](https://discourse.slicer.org/t/how-to-disable-the-clone-button/18090/6 "2021-06-12T17:14:39Z")

</div>

Why do you need to hide the “Clone” action from the right-click menu? What harm does its presence cause in your workflow?

---

<div class="post-metadata">

**Author:** ![OpenSource\_Contri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/opensource_contri/32/11189_2.png) [@OpenSource\_Contri](https://discourse.slicer.org/u/OpenSource_Contri)\
**Post date:** [June 12, 2021, 5:58pm UTC](https://discourse.slicer.org/t/how-to-disable-the-clone-button/18090/7 "2021-06-12T17:58:30Z")

</div>

It doesn’t harm anything but if we put this button just beside the particular segment (whom we want to clone) then, I think it would be better option.

---

<div class="post-metadata">

**Author:** ![OpenSource\_Contri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/opensource_contri/32/11189_2.png) [@OpenSource\_Contri](https://discourse.slicer.org/u/OpenSource_Contri)\
**Post date:** [June 12, 2021, 6:08pm UTC](https://discourse.slicer.org/t/how-to-disable-the-clone-button/18090/8 "2021-06-12T18:08:30Z")

</div>

This is the reason I want to disable right click clone button and create same clone button just besides particular segment.

---

<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:** [June 12, 2021, 7:19pm UTC](https://discourse.slicer.org/t/how-to-disable-the-clone-button/18090/9 "2021-06-12T19:19:00Z")

</div>

Do you mean that you would like to make it easy to clone a selected segment instead of a complete segmentation?

Can you describe your complete workflow? There are so many different solutions for this that it would be very important to know what your end goal is, so that we can give advice or implement improve Slicer core in a way that best serves your end goal and can be generalized to other workflows.

---

<div class="post-metadata">

**Author:** ![OpenSource\_Contri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/opensource_contri/32/11189_2.png) [@OpenSource\_Contri](https://discourse.slicer.org/u/OpenSource_Contri)\
**Post date:** [June 14, 2021, 7:12am UTC](https://discourse.slicer.org/t/how-to-disable-the-clone-button/18090/10 "2021-06-14T07:12:50Z")

</div>

Yes, I want to make it easy for the other to clone particular segment. As there is button to add segment and remove segment, I think it is very much helpful when there will be button for clone particular segment. Other will not have to explore “how to clone” because of separate button for clone.  
My workflow is to make easily accessible user interface for other.

---

<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:** [June 25, 2021, 9:11pm UTC](https://discourse.slicer.org/t/how-to-disable-the-clone-button/18090/11 "2021-06-25T21:11:24Z")

</div>

I’ve updated the “Clone” action to clone a segment if you right-click on a segment, and clone the entire segmentation if you right-click on the segmentation.
