mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-22 06:19:01 +00:00
cache downloaded image
This commit is contained in:
parent
b55e63af7d
commit
a93839fab8
@ -112,6 +112,8 @@ void IconData::download()
|
||||
QObject::connect(reply, SIGNAL(finished()), &loop, SLOT(quit()));
|
||||
loop.exec();
|
||||
m_data = reply->readAll();
|
||||
m_img = QImage::fromData(m_data, "PNG");
|
||||
m_img.save(m_localUrl,"PNG");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user