mirror of
https://github.com/lutris/lutris
synced 2024-11-02 08:20:51 +00:00
Don't use service when querying games from lutris
This commit is contained in:
parent
9bdc29892e
commit
540ab28c0f
2 changed files with 3 additions and 1 deletions
|
@ -489,7 +489,7 @@ class Application(Gtk.Application):
|
||||||
|
|
||||||
def on_game_install(self, game):
|
def on_game_install(self, game):
|
||||||
"""Request installation of a game"""
|
"""Request installation of a game"""
|
||||||
if game.service:
|
if game.service and game.service != "lutris":
|
||||||
service = get_enabled_services()[game.service]()
|
service = get_enabled_services()[game.service]()
|
||||||
db_game = ServiceGameCollection.get_game(service.id, game.appid)
|
db_game = ServiceGameCollection.get_game(service.id, game.appid)
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ import locale
|
||||||
|
|
||||||
from lutris.util.log import logger
|
from lutris.util.log import logger
|
||||||
|
|
||||||
|
|
||||||
def get_user_locale():
|
def get_user_locale():
|
||||||
user_locale, _user_encoding = locale.getlocale()
|
user_locale, _user_encoding = locale.getlocale()
|
||||||
if not user_locale:
|
if not user_locale:
|
||||||
|
@ -10,6 +11,7 @@ def get_user_locale():
|
||||||
return
|
return
|
||||||
return user_locale
|
return user_locale
|
||||||
|
|
||||||
|
|
||||||
def get_lang():
|
def get_lang():
|
||||||
"""Return the 2 letter language code used by the system"""
|
"""Return the 2 letter language code used by the system"""
|
||||||
user_locale = get_user_locale()
|
user_locale = get_user_locale()
|
||||||
|
|
Loading…
Reference in a new issue