Skip to content

Commit

Permalink
看下是否会调用post process
Browse files Browse the repository at this point in the history
  • Loading branch information
liujia committed Aug 21, 2023
1 parent 87ce823 commit 5c49589
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ExtensionTemplateScript(scripts.Script):
# Extension title in menu UI
def title(self):
print('----------------custom extension titile')
return "Extension Template"
return "save state"

# Decide to show menu in txt2img or img2img
# - in "txt2img" -> is_img2img is `False`
Expand All @@ -20,8 +20,8 @@ def title(self):
# below code always show extension menu
def show(self, is_img2img):
print('----------------custom extension show')
return True
# return scripts.AlwaysVisible
# return True
return scripts.AlwaysVisible

# Setup menu ui detail
def ui(self, is_img2img):
Expand Down

0 comments on commit 5c49589

Please sign in to comment.