Update settingsManager.py

This commit is contained in:
chrys87 2016-09-15 10:15:02 +02:00 committed by GitHub
parent 14125c7ccc
commit ba0d381130

View File

@ -138,12 +138,11 @@ class settingsManager():
return environment return environment
def setFenrirKeys(self, environment, keys): def setFenrirKeys(self, environment, keys):
keys = keys.upper()
keyList = keys.split(',') keyList = keys.split(',')
for key in keyList: for key in keyList:
keyID = self.keyIDasString( key) if not key in environment['input']['fenrirKey']:
if keyID != '': environment['input']['fenrirKey'].append(key)
if not keyID in environment['input']['fenrirKey']:
environment['input']['fenrirKey'].append(keyID)
return environment return environment
def keyIDasString(self, key): def keyIDasString(self, key):