From 3e93625224a95daed7030cecd42a43cb4d9704f4 Mon Sep 17 00:00:00 2001 From: loathingKernel <142770+loathingKernel@users.noreply.github.com> Date: Fri, 20 Sep 2024 23:45:04 +0300 Subject: [PATCH] UbisoftGroup: stop loading widget when the worker finishes in every case --- rare/components/tabs/library/integrations/ubisoft_group.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rare/components/tabs/library/integrations/ubisoft_group.py b/rare/components/tabs/library/integrations/ubisoft_group.py index c688a2cb3..2cbebff56 100644 --- a/rare/components/tabs/library/integrations/ubisoft_group.py +++ b/rare/components/tabs/library/integrations/ubisoft_group.py @@ -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." @@ -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