From 6d803978a3ade830642485d0d1f5f3ae661d9e8e Mon Sep 17 00:00:00 2001 From: DevilXD <4180725+DevilXD@users.noreply.github.com> Date: Sat, 1 Mar 2025 12:42:15 +0100 Subject: [PATCH] Improve consistency by using campaign eligibility instead of linking status in all places --- gui.py | 2 +- twitch.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gui.py b/gui.py index 0940626..19cab07 100644 --- a/gui.py +++ b/gui.py @@ -1409,7 +1409,7 @@ class InventoryOverview: takefocus=False, ).grid(column=1, row=2, sticky="w", padx=4) # Linking status - if campaign.linked: + if campaign.eligible: link_kwargs = { "style": '', "text": _("gui", "inventory", "status", "linked"), diff --git a/twitch.py b/twitch.py index d001bfd..55139c0 100644 --- a/twitch.py +++ b/twitch.py @@ -1521,7 +1521,7 @@ class Twitch: ] campaigns.sort(key=lambda c: c.active, reverse=True) campaigns.sort(key=lambda c: c.upcoming and c.starts_at or c.ends_at) - campaigns.sort(key=lambda c: c.linked, reverse=True) + campaigns.sort(key=lambda c: c.eligible, reverse=True) self._drops.clear() self.gui.inv.clear()