mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-11-27 06:40:10 +08:00
extra network metadata inherit old description
This commit is contained in:
parent
c102780693
commit
0cac6ab615
@ -36,12 +36,10 @@ class UserMetadataEditor:
|
||||
item = self.page.items.get(name, {})
|
||||
|
||||
user_metadata = item.get('user_metadata', None)
|
||||
if user_metadata is None:
|
||||
user_metadata = {}
|
||||
if not user_metadata:
|
||||
user_metadata = {'description': item.get('description', '')}
|
||||
item['user_metadata'] = user_metadata
|
||||
|
||||
if len(user_metadata) == 0:
|
||||
user_metadata = {'description': item.get('description', '')}
|
||||
return user_metadata
|
||||
|
||||
def create_extra_default_items_in_left_column(self):
|
||||
|
Loading…
Reference in New Issue
Block a user