Commit 09517709 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Task: Rename a function for clarity

parent e5606adc
......@@ -482,7 +482,7 @@ void MediaLibrary::onUpdatedFile( std::shared_ptr<File> file,
auto mrl = fileFs->mrl();
try
{
auto task = parser::Task::create( this, std::move( file ), std::move( fileFs ) );
auto task = parser::Task::createRefreshTask( this, std::move( file ), std::move( fileFs ) );
if ( task != nullptr && m_parser != nullptr )
m_parser->parse( std::move( task ) );
}
......
......@@ -506,7 +506,7 @@ Task::create( MediaLibraryPtr ml, std::shared_ptr<fs::IFile> fileFs,
}
std::shared_ptr<Task>
Task::create( MediaLibraryPtr ml, std::shared_ptr<File> file,
Task::createRefreshTask( MediaLibraryPtr ml, std::shared_ptr<File> file,
std::shared_ptr<fs::IFile> fileFs )
{
auto self = std::make_shared<Task>( ml, std::move( file ), std::move( fileFs ) );
......
......@@ -208,7 +208,7 @@ public:
std::shared_ptr<fs::IDirectory> parentFolderFs,
std::pair<std::shared_ptr<Playlist>,
unsigned int> parentPlaylist );
static std::shared_ptr<Task> create( MediaLibraryPtr ml, std::shared_ptr<File> file,
static std::shared_ptr<Task> createRefreshTask( MediaLibraryPtr ml, std::shared_ptr<File> file,
std::shared_ptr<fs::IFile> fsFile );
static void recoverUnscannedFiles( MediaLibraryPtr ml );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment