fix: Correctly use path_holder for directory selection in Streamlit app

This commit is contained in:
Bobby Abellana (aider) 2025-02-11 16:23:41 -08:00
parent fc3feba657
commit 302c977027

View File

@ -223,7 +223,7 @@ with col1:
root.after(20, select_dir)
root.mainloop()
if path_holder and path_holder[0]:
st.session_state['source_dir_selected'] = path
st.session_state['source_dir_selected'] = path_holder[0]
st.rerun()
root.destroy()
except Exception as e:
@ -280,7 +280,7 @@ with col1:
root.after(20, select_dir)
root.mainloop()
if path_holder and path_holder[0]:
st.session_state['dest_dir_selected'] = path
st.session_state['dest_dir_selected'] = path_holder[0]
st.rerun()
root.destroy()
except Exception as e: