Skip to content

Commit

Permalink
Fix #122
Browse files Browse the repository at this point in the history
  • Loading branch information
Interpause committed Mar 5, 2023
1 parent 6a373b8 commit 3b82fed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def on_app_started(demo: gr.Blocks, app: FastAPI):

def on_ui_settings():
# hook to add our own settings to the settings tab
pass
shared.opts.add_option("hide_auto_sd_paint_ext_tab", shared.OptionInfo(False, 'Hide "auto-sd-paint-ext Guide/Panel" after restart.', gr.Checkbox, section=('ui', "User interface")))


def krita_help(folder):
Expand All @@ -75,6 +75,8 @@ def krita_help(folder):


def on_ui_tabs():
if shared.opts.hide_auto_sd_paint_ext_tab:
return
# hook to create our own UI tab
with gr.Blocks(analytics_enabled=False) as interface:
gr.Markdown(
Expand Down

0 comments on commit 3b82fed

Please sign in to comment.