diff options
author | Josh Morman <jmorman@perspectalabs.com> | 2019-08-30 15:26:43 -0400 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-09-17 14:30:50 -0500 |
commit | 44a6f5ddc82233730c9702888c6796874a352f07 (patch) | |
tree | 0d5dd53ff823d33821896930a962b0e83d43ade5 /grc/gui/PropsDialog.py | |
parent | a5df144a2c4098b7681b0d83235d343483419dc9 (diff) |
grc: option toggle the show id on all blocks
Addresses the issue of losing access to the block id on many/most blocks
though there are scenarios where you may need to see them in GRC
Added a menu item tied into the grc prefs that will show the block ids
Fixes #2780
Diffstat (limited to 'grc/gui/PropsDialog.py')
-rw-r--r-- | grc/gui/PropsDialog.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/grc/gui/PropsDialog.py b/grc/gui/PropsDialog.py index 1e23e04130..7d0226d203 100644 --- a/grc/gui/PropsDialog.py +++ b/grc/gui/PropsDialog.py @@ -180,7 +180,11 @@ class PropsDialog(Gtk.Dialog): # child.destroy() # disabled because it throws errors... # repopulate the params box box_all_valid = True + force_show_id = Actions.TOGGLE_SHOW_BLOCK_IDS.get_active() + for param in self._block.params.values(): + if force_show_id and param.dtype == 'id': + param.hide = 'none' # todo: why do we even rebuild instead of really hiding params? if param.category != category or param.hide == 'all': continue |