mirror of
https://github.com/lutris/lutris
synced 2024-10-14 19:53:53 +00:00
Only get service game if the game's service match
This commit is contained in:
parent
67b8189a9f
commit
3f45d1f524
|
@ -21,11 +21,11 @@ from lutris.installer.errors import MissingGameDependencyError, ScriptingError
|
|||
from lutris.installer.interpreter import ScriptInterpreter
|
||||
from lutris.util import xdgshortcuts
|
||||
from lutris.util.jobs import AsyncCall
|
||||
from lutris.util.linux import LINUX_SYSTEM
|
||||
from lutris.util.log import logger
|
||||
from lutris.util.steam import shortcut as steam_shortcut
|
||||
from lutris.util.strings import human_size
|
||||
from lutris.util.system import is_removeable
|
||||
from lutris.util.linux import LINUX_SYSTEM
|
||||
|
||||
|
||||
class MarkupLabel(Gtk.Label):
|
||||
|
|
|
@ -1059,8 +1059,6 @@ class LutrisWindow(Gtk.ApplicationWindow,
|
|||
updated = self.game_store.update(db_game)
|
||||
if not updated:
|
||||
self.update_store()
|
||||
else:
|
||||
logger.debug("Can't get DB game for %s (service: %s)", game, self.service)
|
||||
|
||||
return True
|
||||
|
||||
|
|
|
@ -47,7 +47,10 @@ def get_launch_parameters(runner, gameplay_info):
|
|||
|
||||
# MangoHud
|
||||
if runner.name == "steam":
|
||||
logger.info("Do not enable Mangodhud for Steam games in Lutris. Edit the launch options in Steam and set them to mangohud %%command%%")
|
||||
logger.info(
|
||||
"Do not enable Mangodhud for Steam games in Lutris. "
|
||||
"Edit the launch options in Steam and set them to mangohud %%command%%"
|
||||
)
|
||||
else:
|
||||
mango_args, mango_env = get_mangohud_conf(system_config)
|
||||
if mango_args:
|
||||
|
|
|
@ -365,7 +365,9 @@ class BaseService(GObject.Object):
|
|||
def get_service_db_game(self, game: Game):
|
||||
"""Returns the row dictionary for the service-game corresponding to the
|
||||
PGA game given, if any, or None."""
|
||||
return ServiceGameCollection.get_game(self.id, game.appid)
|
||||
if game.service == self.id and game.appid:
|
||||
return ServiceGameCollection.get_game(self.id, game.appid)
|
||||
return None
|
||||
|
||||
|
||||
class OnlineService(BaseService):
|
||||
|
|
Loading…
Reference in a new issue