1
0
Fork 0
mirror of synced 2024-06-17 10:04:43 +12:00

Move widgets and uninstalled_games attributes to __init__()

This commit is contained in:
Dummerle 2022-09-05 22:46:44 +02:00
parent 5f44f92475
commit 4f91c6b422
No known key found for this signature in database
GPG key ID: AB68CC59CA39F2F1

View file

@ -32,12 +32,9 @@ logger = getLogger("GamesTab")
class GamesTab(QStackedWidget):
widgets: Dict[str, Tuple[
Union[InstalledIconWidget, UninstalledIconWidget], Union[InstalledListWidget, UninstalledListWidget]]] = dict()
running_games = list()
updates = set()
active_filter = 0
uninstalled_games: List[Game] = []
def __init__(self, parent=None):
super(GamesTab, self).__init__(parent=parent)
@ -48,6 +45,10 @@ class GamesTab(QStackedWidget):
self.image_manager = ImageManagerSingleton()
self.settings = QSettings()
self.widgets: Dict[str, Tuple[
Union[InstalledIconWidget, UninstalledIconWidget], Union[InstalledListWidget, UninstalledListWidget]]] = {}
self.uninstalled_games: List[Game] = []
self.game_list: List[Game] = self.api_results.game_list
self.dlcs = self.api_results.dlcs
self.bit32 = self.api_results.bit32_games