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

MediaLibrary: Mention that unremovable devices will be signaled as mounted

parent f6c53934
...@@ -1645,6 +1645,10 @@ void MediaLibrary::addThumbnailer( std::shared_ptr<IThumbnailer> thumbnailer ) ...@@ -1645,6 +1645,10 @@ void MediaLibrary::addThumbnailer( std::shared_ptr<IThumbnailer> thumbnailer )
bool MediaLibrary::DeviceListerCb::onDeviceMounted( const std::string& uuid, bool MediaLibrary::DeviceListerCb::onDeviceMounted( const std::string& uuid,
const std::string& mountedMountpoint ) const std::string& mountedMountpoint )
{ {
/**
* This is also used to refresh the state of non-removable storages.
* deviceFs->isRemovable() must not be assumed to be true.
*/
auto currentDevice = Device::fromUuid( m_ml, uuid ); auto currentDevice = Device::fromUuid( m_ml, uuid );
auto mountpoint = utils::file::toFolderPath( mountedMountpoint ); auto mountpoint = utils::file::toFolderPath( mountedMountpoint );
LOG_INFO( "Device ", uuid, " was plugged and mounted on ", mountpoint ); LOG_INFO( "Device ", uuid, " was plugged and mounted on ", mountpoint );
......
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