RareGame: Clear pixmap cache before loading a new pixmap
This commit is contained in:
parent
06e2c9b714
commit
ce0b9788ee
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,7 @@ from threading import Lock
|
||||||
from typing import List, Optional, Dict, Set
|
from typing import List, Optional, Dict, Set
|
||||||
|
|
||||||
from PyQt5.QtCore import QRunnable, pyqtSlot, QProcess, QThreadPool
|
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.lfs import eos
|
||||||
from legendary.models.game import Game, InstalledGame
|
from legendary.models.game import Game, InstalledGame
|
||||||
|
|
||||||
|
@ -481,6 +481,7 @@ class RareGame(RareGameSlim):
|
||||||
|
|
||||||
def set_pixmap(self):
|
def set_pixmap(self):
|
||||||
self.pixmap = self.image_manager.get_pixmap(self.app_name, self.is_installed)
|
self.pixmap = self.image_manager.get_pixmap(self.app_name, self.is_installed)
|
||||||
|
QPixmapCache.clear()
|
||||||
if not self.pixmap.isNull():
|
if not self.pixmap.isNull():
|
||||||
self.signals.widget.update.emit()
|
self.signals.widget.update.emit()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue