From 35adc53944791bb8c6f9cc2b1565bc7ce13c08f7 Mon Sep 17 00:00:00 2001 From: gor_down Date: Fri, 20 Mar 2026 18:07:35 -0300 Subject: [PATCH] convert charname to lowercase --- gameview.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gameview.py b/gameview.py index 710f753..a3095a8 100644 --- a/gameview.py +++ b/gameview.py @@ -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 == "":