Fix image cache pruning interval
This commit is contained in:
parent
95d898e09d
commit
8356746ea4
@ -33,7 +33,7 @@ MxcImageProvider::MxcImageProvider(QObject *parent)
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
auto timer = new QTimer(this);
|
auto timer = new QTimer(this);
|
||||||
timer->setInterval(std::chrono::hours(30));
|
timer->setInterval(std::chrono::hours(1));
|
||||||
connect(timer, &QTimer::timeout, this, [] {
|
connect(timer, &QTimer::timeout, this, [] {
|
||||||
QThreadPool::globalInstance()->start([] {
|
QThreadPool::globalInstance()->start([] {
|
||||||
QDir dir(QStandardPaths::writableLocation(QStandardPaths::CacheLocation) +
|
QDir dir(QStandardPaths::writableLocation(QStandardPaths::CacheLocation) +
|
||||||
|
Loading…
Reference in New Issue
Block a user