1
0
Fork 0
mirror of synced 2024-06-26 18:20:50 +12:00

Fix bug with "%" in lineedits

This commit is contained in:
Dummerle 2022-03-05 23:23:02 +01:00
parent 451371185f
commit f081f3943d
No known key found for this signature in database
GPG key ID: AB68CC59CA39F2F1

View file

@ -13,7 +13,8 @@ def init_config_handler(core: LegendaryCore):
save_config = core.lgd.save_config
def add_option(app_name: str, option: str, value):
def add_option(app_name: str, option: str, value: str):
value = value.replace("%%", "%").replace("%", "%%")
if not config.has_section(app_name):
config[app_name] = {}