Don't use service when querying games from lutris

This commit is contained in:
Mathieu Comandon 2021-10-16 11:37:00 -07:00
parent 9bdc29892e
commit 540ab28c0f
2 changed files with 3 additions and 1 deletions

View file

@ -489,7 +489,7 @@ class Application(Gtk.Application):
def on_game_install(self, game):
"""Request installation of a game"""
if game.service:
if game.service and game.service != "lutris":
service = get_enabled_services()[game.service]()
db_game = ServiceGameCollection.get_game(service.id, game.appid)

View file

@ -3,6 +3,7 @@ import locale
from lutris.util.log import logger
def get_user_locale():
user_locale, _user_encoding = locale.getlocale()
if not user_locale:
@ -10,6 +11,7 @@ def get_user_locale():
return
return user_locale
def get_lang():
"""Return the 2 letter language code used by the system"""
user_locale = get_user_locale()