diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2015-04-02 11:58:56 +0200 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2015-04-03 22:17:59 +0200 |
commit | 74fe1d0ea867a3971e369218e4da411f75b4d5ad (patch) | |
tree | f8281ecfcbdd3fba703bca8aa417efdaa174ce99 /grc/gui/ActionHandler.py | |
parent | 3271e9f31c11a4fc36a3989e236f2dc919bda86b (diff) |
grc: add toggle switch to hide comments
Diffstat (limited to 'grc/gui/ActionHandler.py')
-rw-r--r-- | grc/gui/ActionHandler.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/grc/gui/ActionHandler.py b/grc/gui/ActionHandler.py index 6dc088c36d..83ce5ff8ce 100644 --- a/grc/gui/ActionHandler.py +++ b/grc/gui/ActionHandler.py @@ -122,7 +122,8 @@ class ActionHandler: Actions.TOGGLE_REPORTS_WINDOW, Actions.TOGGLE_HIDE_DISABLED_BLOCKS, Actions.TOOLS_RUN_FDESIGN, Actions.TOGGLE_SCROLL_LOCK, Actions.CLEAR_REPORTS, Actions.SAVE_REPORTS, - Actions.TOGGLE_AUTO_HIDE_PORT_LABELS, Actions.TOGGLE_SNAP_TO_GRID + Actions.TOGGLE_AUTO_HIDE_PORT_LABELS, Actions.TOGGLE_SNAP_TO_GRID, + Actions.TOGGLE_SHOW_BLOCK_COMMENTS, ): action.set_sensitive(True) if ParseXML.xml_failures: Messages.send_xml_errors_if_any(ParseXML.xml_failures) @@ -143,7 +144,8 @@ class ActionHandler: Actions.TOGGLE_BLOCKS_WINDOW, Actions.TOGGLE_AUTO_HIDE_PORT_LABELS, Actions.TOGGLE_SCROLL_LOCK, - Actions.TOGGLE_SNAP_TO_GRID + Actions.TOGGLE_SNAP_TO_GRID, + Actions.TOGGLE_SHOW_BLOCK_COMMENTS, ): action.load_from_preferences() elif action == Actions.APPLICATION_QUIT: if self.main_window.close_pages(): @@ -401,6 +403,8 @@ class ActionHandler: page.get_flow_graph().create_shapes() elif action == Actions.TOGGLE_SNAP_TO_GRID: action.save_to_preferences() + elif action == Actions.TOGGLE_SHOW_BLOCK_COMMENTS: + action.save_to_preferences() ################################################## # Param Modifications ################################################## |