summaryrefslogtreecommitdiffstats
path: root/g4f/gui/webview.py
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-04-06 10:47:43 +0200
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-04-06 10:47:43 +0200
commit0de9ca20044ced84c12fbcf3b6de90ac193025e4 (patch)
tree68b4041d0f7f1ce93e5d4e06f3cf89a5651911fd /g4f/gui/webview.py
parentUpdate client.md (diff)
downloadgpt4free-0de9ca20044ced84c12fbcf3b6de90ac193025e4.tar
gpt4free-0de9ca20044ced84c12fbcf3b6de90ac193025e4.tar.gz
gpt4free-0de9ca20044ced84c12fbcf3b6de90ac193025e4.tar.bz2
gpt4free-0de9ca20044ced84c12fbcf3b6de90ac193025e4.tar.lz
gpt4free-0de9ca20044ced84c12fbcf3b6de90ac193025e4.tar.xz
gpt4free-0de9ca20044ced84c12fbcf3b6de90ac193025e4.tar.zst
gpt4free-0de9ca20044ced84c12fbcf3b6de90ac193025e4.zip
Diffstat (limited to 'g4f/gui/webview.py')
-rw-r--r--g4f/gui/webview.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/g4f/gui/webview.py b/g4f/gui/webview.py
index b015dbed..0ea61adb 100644
--- a/g4f/gui/webview.py
+++ b/g4f/gui/webview.py
@@ -17,13 +17,14 @@ import g4f.debug
def run_webview(
debug: bool = False,
ssl: bool = True,
- storage_path: str = None
+ storage_path: str = None,
+ gui: str = None
):
if getattr(sys, 'frozen', False):
dirname = sys._MEIPASS
else:
dirname = os.path.dirname(__file__)
- webview.settings['OPEN_EXTERNAL_LINKS_IN_BROWSER'] = False
+ webview.settings['OPEN_EXTERNAL_LINKS_IN_BROWSER'] = True
webview.settings['ALLOW_DOWNLOADS'] = True
webview.create_window(
f"g4f - {g4f.version.utils.current_version}",
@@ -37,7 +38,8 @@ def run_webview(
private_mode=False,
storage_path=storage_path,
debug=debug,
- ssl=ssl
+ ssl=ssl,
+ gui=gui
)
if __name__ == "__main__":