summaryrefslogtreecommitdiff
path: root/grc/gui/FlowGraph.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2015-04-02 11:58:56 +0200
committerSebastian Koslowski <koslowski@kit.edu>2015-04-03 22:17:59 +0200
commit74fe1d0ea867a3971e369218e4da411f75b4d5ad (patch)
treef8281ecfcbdd3fba703bca8aa417efdaa174ce99 /grc/gui/FlowGraph.py
parent3271e9f31c11a4fc36a3989e236f2dc919bda86b (diff)
grc: add toggle switch to hide comments
Diffstat (limited to 'grc/gui/FlowGraph.py')
-rw-r--r--grc/gui/FlowGraph.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/grc/gui/FlowGraph.py b/grc/gui/FlowGraph.py
index d512a6793d..51b522a2d5 100644
--- a/grc/gui/FlowGraph.py
+++ b/grc/gui/FlowGraph.py
@@ -282,10 +282,11 @@ class FlowGraph(Element):
window.draw_rectangle(gc, True, 0, 0, W, H)
# draw comments first
hide_disabled_blocks = Actions.TOGGLE_HIDE_DISABLED_BLOCKS.get_active()
- for block in self.get_blocks():
- if hide_disabled_blocks and not block.get_enabled():
- continue # skip hidden disabled block comments
- block.draw_comment(gc, window)
+ if Actions.TOGGLE_SHOW_BLOCK_COMMENTS.get_active():
+ for block in self.get_blocks():
+ if hide_disabled_blocks and not block.get_enabled():
+ continue # skip hidden disabled block comments
+ block.draw_comment(gc, window)
#draw multi select rectangle
if self.mouse_pressed and (not self.get_selected_elements() or self.get_ctrl_mask()):
#coordinates