fix: Correctly use path_holder for directory selection in Streamlit app
This commit is contained in:
parent
fc3feba657
commit
302c977027
@ -223,7 +223,7 @@ with col1:
|
|||||||
root.after(20, select_dir)
|
root.after(20, select_dir)
|
||||||
root.mainloop()
|
root.mainloop()
|
||||||
if path_holder and path_holder[0]:
|
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()
|
st.rerun()
|
||||||
root.destroy()
|
root.destroy()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
@ -280,7 +280,7 @@ with col1:
|
|||||||
root.after(20, select_dir)
|
root.after(20, select_dir)
|
||||||
root.mainloop()
|
root.mainloop()
|
||||||
if path_holder and path_holder[0]:
|
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()
|
st.rerun()
|
||||||
root.destroy()
|
root.destroy()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user