Skip to content

Commit

Permalink
"all" command now is able to filter blocks on the "enable" or "disabl…
Browse files Browse the repository at this point in the history
…e" field
  • Loading branch information
vlachoudis committed Jan 28, 2016
1 parent 395dc9a commit 95ac7f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CNCList.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ def fill(self, event=None):
y = 0
for bi,block in enumerate(self.gcode.blocks):
if self.filter is not None:
if self.filter not in block.name():
if self.filter not in block.name() and \
(self.filter=="enable" and not block.enable or
self.filter=="disable" and block.enable):
self._blockPos.append(None)
continue

Expand Down

0 comments on commit 95ac7f5

Please sign in to comment.