🩹 Small fix

This commit is contained in:
zhbaor 2023-03-05 00:26:02 +08:00
parent fe36735f37
commit 9192f61811
2 changed files with 3 additions and 2 deletions

View file

@ -38,7 +38,9 @@ def download():
@app.get("/path")
def get_path():
result = webview.active_window().create_file_dialog(dialog_type=webview.FOLDER_DIALOG)
result = webview.active_window().create_file_dialog(
dialog_type=webview.FOLDER_DIALOG
)
if result:
manager.path = result[0]
return manager.path