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

MediaLibrary: Mention that unremovable devices will be signaled as mounted

(cherry picked from commit 3d763660)
Signed-off-by: 's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent d55ccd9a
......@@ -1614,6 +1614,10 @@ void MediaLibrary::addThumbnailer( std::shared_ptr<IThumbnailer> thumbnailer )
bool MediaLibrary::DeviceListerCb::onDeviceMounted( const std::string& uuid,
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 mountpoint = utils::file::toFolderPath( mountedMountpoint );
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