Skip to content

Commit

Permalink
UbisoftGroup: stop loading widget when the worker finishes in every case
Browse files Browse the repository at this point in the history
  • Loading branch information
loathingKernel committed Sep 20, 2024
1 parent 80cfad6 commit 3e93625
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rare/components/tabs/library/integrations/ubisoft_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ def showEvent(self, a0: QShowEvent) -> None:
@Slot(set, set, str)
def show_ubi_games(self, redeemed: set, entitlements: set, ubi_account_id: str):
self.worker = None
self.loading_widget.stop()
if not redeemed and ubi_account_id != "error":
logger.error(
"No linked ubisoft account found! Link your accounts via your browser and try again."
Expand Down Expand Up @@ -257,8 +258,6 @@ def show_ubi_games(self, redeemed: set, entitlements: set, ubi_account_id: str):
)
logger.info(f"Found {len(uplay_games) - activated} game(s) to redeem.")

self.loading_widget.stop()

for game in uplay_games:
widget = UbiLinkWidget(
game, ubi_account_id, activated=game.partner_link_id in redeemed, parent=self
Expand Down

0 comments on commit 3e93625

Please sign in to comment.