convert charname to lowercase

This commit is contained in:
simio 2026-03-20 18:07:35 -03:00
parent 5cd497c68a
commit 35adc53944

View File

@ -2470,13 +2470,13 @@ class GUI(QtGui.QWidget):
effectsList.insert(0, "No effect")
self.boxEffects.addItems(effectsList)
if isinstance(charName, str):
charName = unicode(charName.lower())
elif isinstance(charName, QtCore.QString):
charName = unicode(charName.toLower())
if isinstance(charName, QtCore.QString):
charName = unicode(charName)
charName = charName.lower() # Just use the folder name
#self.charName = ini.read_ini(BASE_PATH + 'characters/' + charName + '/char.ini', "options", "name", charName.decode('utf-8').lower()
self.charName = charName # Just use the folder name
self.charName = charName
self.charShowname = ini.read_ini(BASE_PATH + 'characters/' + charName + '/char.ini', "options", "showname")
if not self.charShowname == "":