Fix search logic if no developer
This commit is contained in:
@@ -167,9 +167,8 @@ class CartridgesWindow(Adw.ApplicationWindow):
|
|||||||
)
|
)
|
||||||
|
|
||||||
filtered = text != "" and not (
|
filtered = text != "" and not (
|
||||||
text in game.name.lower() or text in game.developer.lower()
|
text in game.name.lower()
|
||||||
if game.developer
|
or (text in game.developer.lower() if game.developer else False)
|
||||||
else None
|
|
||||||
)
|
)
|
||||||
|
|
||||||
game.filtered = filtered
|
game.filtered = filtered
|
||||||
|
|||||||
Reference in New Issue
Block a user