refactor: rename steam_game to game_source for better clarity

Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
2025-06-04 20:11:05 +05:00
parent 61964d21c7
commit 5d84dbad8e
3 changed files with 17 additions and 18 deletions

View File

@ -40,7 +40,7 @@ class ContextMenuManager:
"""
menu = QMenu(self.parent)
if game_card.steam_game != "true":
if game_card.game_source not in ("steam", "epic"):
desktop_dir = subprocess.check_output(['xdg-user-dir', 'DESKTOP']).decode('utf-8').strip()
desktop_path = os.path.join(desktop_dir, f"{game_card.name}.desktop")
if os.path.exists(desktop_path):