mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
- UpdateRatio only when it is displayed
- Resample favicon to 16x16 before displaying it for better quality - Updated TODO
This commit is contained in:
@@ -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_){
|
||||
|
||||
Reference in New Issue
Block a user