diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2020-04-30 20:43:21 +0200 |
---|---|---|
committer | Martin Braun <martin@gnuradio.org> | 2021-01-13 10:07:07 +0100 |
commit | be21c29995a7cfdee731cc4cf1daa715d0caac11 (patch) | |
tree | a1621700817edfc09ed9cf4de4f1cb54ce3d14cf /grc/gui | |
parent | 306d889f1b2cd39567bb5c2b50a34fb7230173c7 (diff) |
GRC: Actions with preferences now explicitly default to something
Diffstat (limited to 'grc/gui')
-rw-r--r-- | grc/gui/Actions.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/grc/gui/Actions.py b/grc/gui/Actions.py index 28cc35e2ba..cf0e781c9c 100644 --- a/grc/gui/Actions.py +++ b/grc/gui/Actions.py @@ -437,6 +437,7 @@ TOGGLE_SNAP_TO_GRID = actions.register( label='_Snap to grid', tooltip='Snap blocks to a grid for an easier connection alignment', preference_name='snap_to_grid', + default=True, ) TOGGLE_HIDE_DISABLED_BLOCKS = actions.register( "win.hide_disabled", @@ -445,6 +446,7 @@ TOGGLE_HIDE_DISABLED_BLOCKS = actions.register( icon_name='image-missing', keypresses=["<Ctrl>d"], preference_name='hide_disabled', + default=False, ) TOGGLE_HIDE_VARIABLES = actions.register( "win.hide_variables", @@ -481,12 +483,16 @@ TOGGLE_AUTO_HIDE_PORT_LABELS = actions.register( "win.auto_hide_port_labels", label='Auto-Hide _Port Labels', tooltip='Automatically hide port labels', - preference_name='auto_hide_port_labels') + preference_name='auto_hide_port_labels', + default=False, +) TOGGLE_SHOW_BLOCK_COMMENTS = actions.register( "win.show_block_comments", label='Show Block Comments', tooltip="Show comment beneath each block", - preference_name='show_block_comments') + preference_name='show_block_comments', + default=True, +) TOGGLE_SHOW_CODE_PREVIEW_TAB = actions.register( "win.toggle_code_preview", label='Generated Code Preview', @@ -558,6 +564,7 @@ TOGGLE_SCROLL_LOCK = actions.register( tooltip='Toggle scroll lock for the console window', preference_name='scroll_lock', keypresses=["Scroll_Lock"], + default=False, ) ABOUT_WINDOW_DISPLAY = actions.register( "app.about", |