void ChangeSingleTagValue(metadb_handle_ptr handle, const wchar_t* tagName, const wchar_t* tagValue) | |
{ | |
file_info_impl fileInfo; | |
handle->get_info( fileInfo ); | |
fileInfo.meta_remove_field( tagName ); | |
fileInfo.meta_set( tagName, tagValue ); | |
metadb_handle_list handleList; | |
handleList.add_item( handle ); | |
metadb_io_v2::get()->update_info_async_simple( | |
handleList, | |
pfc::ptr_list_const_array_t<const file_info, const file_info_impl*>( &fileInfo, 1 ), | |
core_api::get_main_window(), | |
metadb_io_v2::op_flag_delay_ui, | |
nullptr ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment