Commit b45569b2 authored by Fushan Wen's avatar Fushan Wen
Browse files

wallpapers/image: reduce the maximum allowed cost of QCache

To save some memory usage.


(cherry picked from commit b36a345f)
parent b5ef5601
Pipeline #243346 passed with stage
in 8 minutes and 28 seconds
......@@ -20,7 +20,7 @@ AbstractImageListModel::AbstractImageListModel(const QSize &targetSize, QObject
, m_screenshotSize(targetSize / 8)
, m_targetSize(targetSize)
{
constexpr int maxCacheSize = 30;
constexpr int maxCacheSize = 10;
m_imageCache.setMaxCost(maxCacheSize);
m_backgroundTitleCache.setMaxCost(maxCacheSize);
m_backgroundAuthorCache.setMaxCost(maxCacheSize);
......
Supports Markdown
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