Skip to content

Commit

Permalink
fix webview
Browse files Browse the repository at this point in the history
  • Loading branch information
e-sollier committed Mar 21, 2024
1 parent 5eea393 commit f72bf5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion figeno/gui/gui_webview.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def browse():
start_dir = last_dir
if len(data["path"])>0 and os.path.exists(os.path.dirname(data["path"])):
start_dir = os.path.dirname(data["path"])
t = window.create_file_dialog(webview.OPEN_DIALOG, allow_multiple=False ,directory=start_dir, title="Select file")
t = window.create_file_dialog(webview.OPEN_DIALOG, allow_multiple=False ,directory=start_dir)
if t is None: t=""
if not isinstance(t,str): t=t[0]
if len(t)>0: last_dir= os.path.dirname(t)
Expand Down

0 comments on commit f72bf5e

Please sign in to comment.