mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
Don't use service when querying games from lutris
This commit is contained in:
parent
9bdc29892e
commit
540ab28c0f
|
@ -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)
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue