diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2015-04-04 10:41:49 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2015-04-04 10:41:49 -0700 |
commit | 61c4e2f62d18b3b2f0663b8c0a54a105d3896883 (patch) | |
tree | 1ee92dc79a2d257c45e0b32a470833057344cdea /grc/gui/ActionHandler.py | |
parent | 0e4f02cfee57c73712a8bb21b408d69d9fcfe1b9 (diff) | |
parent | fa2abde0a0c9c1430ca1c4bb470ddb35e18c0ee2 (diff) |
Merge branch 'master' into next
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 ################################################## |