Skip to content

Commit

Permalink
fix: use proper details settings to load image details
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Jan 31, 2024
1 parent 4bbfb94 commit 56f9d46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/src/models/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "loader/token.h"
#include "logger.h"
#include "models/api/api.h"
#include "models/api/api-endpoint.h"
#include "models/image.h"
#include "models/page.h"
#include "models/pool.h"
Expand Down Expand Up @@ -472,7 +473,7 @@ void Image::loadDetails(bool rateLimit)

log(QStringLiteral("Loading image details from `%1`").arg(m_pageUrl.toString()), Logger::Info);

Site::QueryType type = rateLimit ? Site::QueryType::Retry : Site::QueryType::List;
Site::QueryType type = rateLimit ? Site::QueryType::Retry : Site::QueryType::Details;
m_loadDetails = m_parentSite->get(m_pageUrl, type);
m_loadDetails->setParent(this);
m_loadingDetails = true;
Expand Down

0 comments on commit 56f9d46

Please sign in to comment.