now uses template to parse for section and option rather than just assume order
@@ -332,6 +332,7 @@ class MainForm(npyscreen.FormBaseNewWithMenus):
self.api_action = Action()
drop_location = os.path.join(PathDirs().base_dir, "vent.cfg")
template = Template(template=drop_location)
+ template = template.option("main", "files")[1]
except DockerException as de: # pragma: no cover
notify_confirm(str(de),
title="Docker Error",
@@ -360,7 +361,7 @@ class MainForm(npyscreen.FormBaseNewWithMenus):
labelColor='DEFAULT')
self.file_drop = self.add(npyscreen.TitleFixedText,
name='File Drop:',
- value=template.section("main")[1][0][1],
+ value=template,
labelColor='DEFAULT')
self.addfield3 = self.add(npyscreen.TitleFixedText, name='Containers:',
labelColor='DEFAULT',
