fix: use string strip() function to remove braces

in drag-and-drop file path
pull/368/head
Justin Lacy 2024-08-16 11:41:20 -07:00
parent e839618995
commit 4d23db47e2
No known key found for this signature in database
GPG Key ID: DEFC2592CAC37BCB
1 changed files with 2 additions and 2 deletions

View File

@ -156,10 +156,10 @@ def update_tumbler(var: str, value: bool) -> None:
modules.globals.fp_ui[var] = value
def drop_source_file(e) -> None:
set_source_path( e.data.replace("{","").replace("}", ""))
set_source_path( e.data.strip('{}'))
def drop_target_file(e) -> None:
set_target_path( e.data.replace("{","").replace("}", ""))
set_target_path( e.data.strip('{}'))
def select_source_path() -> None:
global RECENT_DIRECTORY_SOURCE, img_ft, vid_ft