# Publish2 UI settings transfer from one item to another

**URL:** <https://community.shotgridsoftware.com/t/publish2-ui-settings-transfer-from-one-item-to-another/13847>\
**Category:** Pipeline Integrations\
**Tags:** fptr-tk\
**Created:** [October 25, 2021, 11:53am UTC](https://community.shotgridsoftware.com/t/publish2-ui-settings-transfer-from-one-item-to-another/13847 "2021-10-25T11:53:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tweekazoid](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/tweekazoid/32/4534_2.png) [@tweekazoid](https://community.shotgridsoftware.com/u/tweekazoid)\
**Post date:** [October 25, 2021, 11:53am UTC](https://community.shotgridsoftware.com/t/publish2-ui-settings-transfer-from-one-item-to-another/13847/1 "2021-10-25T11:53:46Z")

</div>

Hi,  
To quickly describe the issue.

I came across an issue where publishing plugins in tk-multi-publish2 UI inherit data from one plugin to another. This happens every time plugin types are the same and a newly selected item is selected for the first time.

For a better explanation and possible solution, please watch the video.  
[google drive mp4 file](https://drive.google.com/file/d/1xEkrjwHUCMb1JzOW1uWn5SQvbpy8WK_x/view?usp=sharing)

> **[multi\_publish\_settings\_inheritance.mp4 (video)](https://drive.google.com/file/d/1xEkrjwHUCMb1JzOW1uWn5SQvbpy8WK_x/view?usp=sharing)**
>
> Google Drive file.

if the video is not yet trans coded correctly:  
tk-multi-publish2[some\_version]\python\tk\_multi\_publish2\dialog.py  
l.n.: 442  
change :  
self.\_current\_tasks.is\_same\_task\_type(new\_task\_selection)  
to:  
self.\_current\_tasks == new\_task\_selection  
…

because the publishing plugins have the same type, publish will reuse a custom UI widget, and that in turn copies data from one item to another.  
I think that this approach is not optimal.

I have sort of a question if my approach is OK, or is there something else that can be done.

---

<div class="post-metadata">

**Author:** ![grover\_gol](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/grover_gol/32/2436_2.png) [@grover\_gol](https://community.shotgridsoftware.com/u/grover_gol)\
**Post date:** [November 4, 2021, 11:28am UTC](https://community.shotgridsoftware.com/t/publish2-ui-settings-transfer-from-one-item-to-another/13847/2 "2021-11-04T11:28:30Z")

</div>

Hey, it happens because the first time you open the UI in a new item you don’t have values to load from settings. I assume your settings default values are None. And when your set\_ui\_settings() function runs most probably it doesn’t apply any default settings to your interface skipping None values, so it just remains with the previous values.
