nullobsi / cantata

Qt Graphical MPD Client
GNU General Public License v3.0
44 stars 4 forks source link

fix: GUI responsiveness when changing tracks #23

Closed nullobsi closed 3 months ago

nullobsi commented 3 months ago

Refactor KNotification to use QImage instead of tossing around QPixmaps. This reduces unnessecary serialization. In addition, resize notification thumbnail to 512px.

The GUI might still take too long to update for extremely large images, as resizing is not free. This is still an improvement.

In the future, we could cache these smaller thumbnails, or on Linux, pass the image-path parameter.

Also, disable autoDelete on the notification to prevent use-after-free crashes.

Addresses #22, #17.