Lowercase some strings after parsing the config

This commit is contained in:
AuroraWright
2024-01-20 19:27:12 +01:00
parent db9bc73c96
commit 11a2ead52a

View File

@@ -194,7 +194,7 @@ def run(read_from='clipboard',
if len(res) != 0: if len(res) != 0:
try: try:
for config_engine in config['general']['engines'].split(','): for config_engine in config['general']['engines'].split(','):
config_engines.append(config_engine.strip()) config_engines.append(config_engine.strip().lower())
except KeyError: except KeyError:
pass pass
@@ -219,7 +219,7 @@ def run(read_from='clipboard',
pass pass
try: try:
if config['general']['notifications'].strip() == 'True': if config['general']['notifications'].strip().lower() == 'true':
notifier = DesktopNotifier() notifier = DesktopNotifier()
except KeyError: except KeyError:
pass pass