Verified Commit 909a7ad9 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

wallpapers/image: increase cache size to 30

parent f243c71f
......@@ -18,8 +18,8 @@ AbstractImageListModel::AbstractImageListModel(const QSize &targetSize, QObject
, m_screenshotSize(targetSize / 8)
, m_targetSize(targetSize)
{
m_imageCache.setMaxCost(m_screenshotSize.width() * m_screenshotSize.height() * 20);
m_imageSizeCache.setMaxCost(20);
m_imageCache.setMaxCost(30);
m_imageSizeCache.setMaxCost(30);
connect(this, &QAbstractListModel::rowsInserted, this, &AbstractImageListModel::countChanged);
connect(this, &QAbstractListModel::rowsRemoved, this, &AbstractImageListModel::countChanged);
......
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