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

MediaLibrary: Insert device in DB when first encountered

(cherry picked from commit 1f931dc8)
Signed-off-by: 's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 6021ccb8
Pipeline #5068 passed with stages
in 16 minutes and 7 seconds
......@@ -1634,7 +1634,11 @@ bool MediaLibrary::DeviceListerCb::onDeviceMounted( const std::string& uuid,
}
}
else
{
m_ml->refreshDevices( *fsFactory );
if ( Device::create( m_ml, uuid, "file://", true ) == nullptr )
return false;
}
break;
}
}
......
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