mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Allow up to 128 MB of cached images.
This commit is contained in:
@@ -18,8 +18,8 @@ using namespace Images;
|
|||||||
namespace Images {
|
namespace Images {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
// After 64MB of unpacked images we try to clear some memory.
|
// After 128 MB of unpacked images we try to clear some memory.
|
||||||
constexpr auto kMemoryForCache = 64 * 1024 * 1024;
|
constexpr auto kMemoryForCache = 128 * 1024 * 1024;
|
||||||
|
|
||||||
QMap<QString, Image*> LocalFileImages;
|
QMap<QString, Image*> LocalFileImages;
|
||||||
QMap<QString, Image*> WebUrlImages;
|
QMap<QString, Image*> WebUrlImages;
|
||||||
|
Reference in New Issue
Block a user