Inventory tab exclude option takes priority_only into account

This commit is contained in:
DevilXD committed 2022-09-13 14:35:31 +02:00
1 parent 0e9ddefa03
commit 0dce936c2b
1 file changed
+7 -1
+7 -1
View File
@@ -1093,10 +1093,16 @@ class InventoryOverview:
excluded = bool(self._filters["excluded"].get()) excluded = bool(self._filters["excluded"].get())
upcoming = bool(self._filters["upcoming"].get()) upcoming = bool(self._filters["upcoming"].get())
finished = bool(self._filters["finished"].get()) finished = bool(self._filters["finished"].get())
priority_only = self._settings.priority_only
if ( if (
(not linked or campaign.linked) (not linked or campaign.linked)
and (campaign.active or upcoming and campaign.upcoming or expired and campaign.expired) 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) and (finished or not campaign.finished)
): ):
frame.grid() frame.grid()