diff --git a/portprotonqt/game_card.py b/portprotonqt/game_card.py index 64e7468..e9699a7 100644 --- a/portprotonqt/game_card.py +++ b/portprotonqt/game_card.py @@ -266,13 +266,6 @@ class GameCard(QFrame): self.egsLabel.setVisible(self.egs_visible) self.portprotonLabel.setVisible(self.portproton_visible) - # Reposition badges - right_margin = 8 - badge_spacing = 5 - top_y = 10 - badge_y_positions = [] - badge_width = int(self.coverLabel.width() * 2/3) - badges = [ (self.steam_visible, self.steamLabel), (self.egs_visible, self.egsLabel), @@ -281,6 +274,12 @@ class GameCard(QFrame): (self.anticheatLabel.isVisible(), self.anticheatLabel), ] + right_margin = 8 + badge_spacing = 5 + top_y = 10 + badge_y_positions = [] + badge_width = int(self.coverLabel.width() * 2/3) + for is_visible, badge in badges: if is_visible: badge_x = self.coverLabel.width() - badge_width - right_margin