1
0
Fork 0
mirror of synced 2024-05-18 19:42:54 +12:00

RareGame: Clear pixmap cache before loading a new pixmap

This commit is contained in:
loathingKernel 2024-01-18 16:42:10 +02:00
parent 06e2c9b714
commit ce0b9788ee

View file

@ -8,7 +8,7 @@ from threading import Lock
from typing import List, Optional, Dict, Set
from PyQt5.QtCore import QRunnable, pyqtSlot, QProcess, QThreadPool
from PyQt5.QtGui import QPixmap
from PyQt5.QtGui import QPixmap, QPixmapCache
from legendary.lfs import eos
from legendary.models.game import Game, InstalledGame
@ -481,6 +481,7 @@ class RareGame(RareGameSlim):
def set_pixmap(self):
self.pixmap = self.image_manager.get_pixmap(self.app_name, self.is_installed)
QPixmapCache.clear()
if not self.pixmap.isNull():
self.signals.widget.update.emit()