From d7a9297f76cbef9a1dfaf4f9f5a927613229e35f Mon Sep 17 00:00:00 2001 From: Mochammad Naufal Septifiandi <73427622+mochnaufals@users.noreply.github.com> Date: Thu, 4 Dec 2025 14:39:48 +0800 Subject: [PATCH] Enable downloads in pywebview settings Downloads should be enabled since it's a basic feature on streamlit --- streamlit_desktop_app/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/streamlit_desktop_app/core.py b/streamlit_desktop_app/core.py index 0dd9ad5..b8b491c 100644 --- a/streamlit_desktop_app/core.py +++ b/streamlit_desktop_app/core.py @@ -175,6 +175,7 @@ def start_desktop_app( wait_for_server(port) # Start pywebview with the Streamlit server URL + webview.settings["ALLOW_DOWNLOADS"] = True webview.create_window( title, f"http://localhost:{port}", width=width, height=height )