getAntiCheatIconFilename expand the list of status
Some checks failed
Code and build check / Check code (pull_request) Failing after 1m9s
Code and build check / Build with uv (pull_request) Successful in 45s

This commit is contained in:
2025-06-13 11:21:57 +07:00
parent 0c7cb0092b
commit a1bdff73fe

View File

@ -322,9 +322,15 @@ class GameCard(QFrame):
@staticmethod
def getAntiCheatIconFilename(status: str) -> str:
status = status.lower()
if status in ("supported", "running"):
if status in ("supported"):
return "ac_supported"
elif status in ("denied", "planned", "broken"):
elif status in ("running"):
return "ac_running"
elif status in ("planned"):
return "ac_planned"
elif status in ("denied"):
return "ac_denied"
elif status in ("broken"):
return "ac_broken"
return ""