From 7acbf30e22961d2107c0d305840efd146a579a9b Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Tue, 14 Jul 2015 16:38:05 +0200 Subject: [PATCH] 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. --- configtool/boardpanel.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configtool/boardpanel.py b/configtool/boardpanel.py index ed1bc9e..a08499f 100644 --- a/configtool/boardpanel.py +++ b/configtool/boardpanel.py @@ -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("\\"):