Inventory tab exclude option takes priority_only into account

This commit is contained in:
DevilXD
2022-09-13 14:35:31 +02:00
parent 0e9ddefa03
commit 0dce936c2b

8
gui.py
View File

@@ -1093,10 +1093,16 @@ class InventoryOverview:
excluded = bool(self._filters["excluded"].get())
upcoming = bool(self._filters["upcoming"].get())
finished = bool(self._filters["finished"].get())
priority_only = self._settings.priority_only
if (
(not linked or campaign.linked)
and (campaign.active or upcoming and campaign.upcoming or expired and campaign.expired)
and (excluded or not excluded and campaign.game.name not in self._settings.exclude)
and (
excluded or (
campaign.game.name not in self._settings.exclude
and not priority_only or campaign.game.name in self._settings.priority
)
)
and (finished or not campaign.finished)
):
frame.grid()