Skip to content

Commit

Permalink
Hide layers in legend if name starts with ~
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Apr 30, 2015
1 parent ca88a29 commit 19ff0af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/roam/legendwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self, parent=None):
def paintEvent(self, event):
def itemlist():
for layer, items in self.items.iteritems():
if len(items) == 1:
if len(items) == 1 and not layer.startswith("~"):
yield layer, items[0][1]
else:
for text, icon in items:
Expand Down

0 comments on commit 19ff0af

Please sign in to comment.