mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- UpdateRatio only when it is displayed
- Resample favicon to 16x16 before displaying it for better quality - Updated TODO
This commit is contained in:
parent
ea3a635d49
commit
17b8f76dda
3 changed files with 5 additions and 2 deletions
|
@ -395,6 +395,8 @@ class RssManager : public QObject{
|
|||
Image image(QDir::cleanPath(path+".ico").toUtf8().data());
|
||||
// Convert to PNG since we can't read ICO format
|
||||
image.magick("PNG");
|
||||
// Resize to 16x16px
|
||||
image.sample(Geometry(16, 16));
|
||||
image.write(path.toUtf8().data());
|
||||
QFile::remove(path+".ico");
|
||||
}catch(Magick::Exception &error_){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue