1
0
Fork 0
mirror of synced 2024-06-27 02:30:31 +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: elif "hidden" in widget.rgame.metadata.tags:
visible = False visible = False
elif filter_name == "installed": elif filter_name == "installed":
visible = widget.rgame.is_installed visible = widget.rgame.is_installed and not widget.rgame.is_unreal
elif filter_name == "offline": 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": elif filter_name == "32bit":
visible = widget.rgame.is_win32 visible = widget.rgame.is_win32 and not widget.rgame.is_unreal
elif filter_name == "mac": elif filter_name == "mac":
visible = widget.rgame.is_mac visible = widget.rgame.is_mac and not widget.rgame.is_unreal
elif filter_name == "installable": 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": elif filter_name == "include_ue":
visible = True visible = True
elif filter_name == "all": elif filter_name == "all":

View file

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