1
0
Fork 0
mirror of synced 2024-05-18 19:42:54 +12:00

Library: Filter unreal engine entries expect for the dedicated option

This commit is contained in:
loathingKernel 2023-12-16 20:26:56 +02:00
parent b93435d920
commit 1cf53e3b54
No known key found for this signature in database
GPG key ID: CE0C72D0B53821FD
2 changed files with 5 additions and 6 deletions

View file

@ -38,15 +38,15 @@ class LibraryWidgetController(QObject):
elif "hidden" in widget.rgame.metadata.tags:
visible = False
elif filter_name == "installed":
visible = widget.rgame.is_installed
visible = widget.rgame.is_installed and not widget.rgame.is_unreal
elif filter_name == "offline":
visible = widget.rgame.can_run_offline
visible = widget.rgame.can_run_offline and not widget.rgame.is_unreal
elif filter_name == "32bit":
visible = widget.rgame.is_win32
visible = widget.rgame.is_win32 and not widget.rgame.is_unreal
elif filter_name == "mac":
visible = widget.rgame.is_mac
visible = widget.rgame.is_mac and not widget.rgame.is_unreal
elif filter_name == "installable":
visible = not widget.rgame.is_non_asset
visible = not widget.rgame.is_non_asset and not widget.rgame.is_unreal
elif filter_name == "include_ue":
visible = True
elif filter_name == "all":

View file

@ -1,6 +1,5 @@
import configparser
import os
import platform
import time
from argparse import Namespace
from itertools import chain