Skip to content

Commit

Permalink
UI/App - Allow text selection (#1593)
Browse files Browse the repository at this point in the history
* When run in app mode on windows, allows selection of text from
non-input controls, which is the same behaviour as web mode.
  • Loading branch information
one-lithe-rune committed Jun 26, 2023
1 parent 10657d6 commit eaa49cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/stable_diffusion/web/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ def launch_app(address):
width = window.winfo_screenwidth()
height = window.winfo_screenheight()
webview.create_window(
"SHARK AI Studio", url=address, width=width, height=height
"SHARK AI Studio",
url=address,
width=width,
height=height,
text_select=True,
)
webview.start(private_mode=False)

Expand Down

0 comments on commit eaa49cc

Please sign in to comment.