You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
I using this on jni.
but when i choose file or cancel it, dialog is freeze.
this is my jni fn :
#[allow(non_snake_case)]#[no_mangle]pubextern"system"fnJava_my_package_openFilePicker<'local>(env:JNIEnv<'local>,_class:JClass<'local>) -> jstring{let path = std::env::current_dir().unwrap();let res = rfd::FileDialog::new().add_filter("image",&["jpg","png"]).set_directory(&path).pick_file();let result = if res != None{
res.unwrap().into_os_string().into_string().unwrap()}else{"".to_string()};
env.new_string(result).unwrap().into_raw()}
The text was updated successfully, but these errors were encountered:
Hi.
I using this on jni.
but when i choose file or cancel it, dialog is freeze.
this is my jni fn :
The text was updated successfully, but these errors were encountered: