Fix Frotz 'Run in terminal' option not properly forced

This commit is contained in:
Xodetaetl 2015-05-05 00:28:28 +02:00
parent d3b614b2be
commit 212623992e

View file

@ -34,11 +34,10 @@ class frotz(Runner):
# Force 'Run in terminal' option
if config:
sys_conf = config.runner_level.get('system')
if sys_conf and not sys_conf.get('terminal'):
sys_conf = config.runner_level['system']
if not sys_conf.get('terminal'):
current_level = config.level
config.level = 'runner'
config.update_cascaded_config()
sys_conf['terminal'] = True
config.save()
config.level = current_level