Configtool: ignore value options in board.metadata.

This solves the problem of choice menus being populated with too
many entries. Before, such menus would pick up values from
board.metadata as well as from the actually loaded file.

File printer.metadata contains no options, so no adjustment
needed there.
This commit is contained in:
Markus Hitter 2015-07-14 16:38:05 +02:00
parent 25c502d68b
commit 7acbf30e22
1 changed files with 7 additions and 0 deletions

View File

@ -294,6 +294,13 @@ class BoardPanel(wx.Panel):
elif ln.lstrip().startswith("#define"):
self.parseDefineName(ln)
# Ignore candidates in the metadata file.
self.candHeatPins = []
self.candThermPins = []
self.candProcessors = []
self.candClocks = []
self.tempTables = {}
prevLines = ""
for ln in self.userBuffer:
if ln.rstrip().endswith("\\"):