1
0
Fork 0
mirror of synced 2024-06-26 10:11:19 +12:00

Remove mistargeted connection to update_gamelist

This commit is contained in:
Stelios Tsampas 2021-10-17 19:12:02 +03:00 committed by Dummerle
parent 1312be94f5
commit f2401af6de
No known key found for this signature in database
GPG key ID: AB68CC59CA39F2F1
2 changed files with 5 additions and 6 deletions

View file

@ -174,10 +174,10 @@ class EGLSyncListItem(QListWidgetItem):
else:
self.setText(shared.core.get_game(game.app_name).app_title)
def is_checked(self):
def is_checked(self) -> bool:
return True if self.checkState() == Qt.Checked else False
def action(self):
def action(self) -> None:
if self.export:
shared.core.egl_export(self.game.app_name)
else:
@ -229,11 +229,10 @@ class EGLSyncListGroup(QGroupBox, Ui_EGLSyncListGroup):
def action(self):
for item in self.items:
if item.is_checked:
if item.is_checked():
item.action()
self.list.takeItem(self.list.row(item))
self.core.egl_sync()
shared.signals.update_gamelist.emit()
shared.signals.update_gamelist.emit(str())
self.populate(True)
@property

View file

@ -66,7 +66,7 @@ class TabWidget(QTabWidget):
# update dl tab text
self.signals.update_download_tab_text.connect(self.update_dl_tab_text)
# imported
shared.signals.update_gamelist.connect(self.game_imported)
# shared.signals.update_gamelist.connect(self.game_imported)
if not shared.args.offline:
# install dlc