Skip to content

Commit

Permalink
Fix ResourceSpawner (#2490)
Browse files Browse the repository at this point in the history
* Use new ModelIdentifier::Url method

---------

Signed-off-by: Michael Carroll <[email protected]>
Co-authored-by: Addisu Z. Taddese <[email protected]>
Co-authored-by: Ian Chen <[email protected]>
  • Loading branch information
3 people authored Aug 8, 2024
1 parent fab620a commit 523b01b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/plugins/resource_spawner/ResourceSpawner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ void ResourceSpawner::OnDownloadFuelResource(const QString &_path,
// Set the waiting cursor while the resource downloads
QGuiApplication::setOverrideCursor(Qt::WaitCursor);
if (this->dataPtr->fuelClient->DownloadModel(
common::URI(_path.toStdString()), localPath))
common::URI(_path.toStdString(), true), localPath))
{
// Successful download, set thumbnail
std::string thumbnailPath = common::joinPaths(localPath, "thumbnails");
Expand Down Expand Up @@ -739,7 +739,7 @@ void ResourceSpawner::RunFetchResourceListThread(const std::string &_owner)
resource.isFuel = true;
resource.isDownloaded = false;
resource.owner = id.Owner();
resource.sdfPath = id.UniqueName();
resource.sdfPath = id.Url().Str();

QMetaObject::invokeMethod(
this, "UpdateOwnerListModel", Qt::QueuedConnection,
Expand Down

0 comments on commit 523b01b

Please sign in to comment.