Fix bug with "%" in lineedits
This commit is contained in:
parent
451371185f
commit
f081f3943d
1 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,8 @@ def init_config_handler(core: LegendaryCore):
|
||||||
save_config = core.lgd.save_config
|
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):
|
if not config.has_section(app_name):
|
||||||
config[app_name] = {}
|
config[app_name] = {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue