aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Schroer <3470424+dl1ksv@users.noreply.github.com>2019-08-30 17:06:00 +0200
committerGitHub <noreply@github.com>2019-08-30 17:06:00 +0200
commitef5ca9fe51dc45c0332e41db36f822f145f6116a (patch)
tree071c52900f8e22c080bcf585a2c68870c5471083
parentImprove GRC YAML template (diff)
downloadgnuradio-ef5ca9fe51dc45c0332e41db36f822f145f6116a.tar.xz
gnuradio-ef5ca9fe51dc45c0332e41db36f822f145f6116a.zip
Reintroduce default setting in qtgui_chooser
In gnuradio 3.7 it was possible to select an option as default option. In 3.8 /3.9 the default option is always option 0.
-rw-r--r--gr-qtgui/grc/qtgui_chooser.block.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/gr-qtgui/grc/qtgui_chooser.block.yml b/gr-qtgui/grc/qtgui_chooser.block.yml
index 4206d705f..df27f0246 100644
--- a/gr-qtgui/grc/qtgui_chooser.block.yml
+++ b/gr-qtgui/grc/qtgui_chooser.block.yml
@@ -31,7 +31,11 @@ parameters:
default: '[]'
hide: ${ ('all' if int(num_opts) else 'none') }
- id: value
- label: Option 0 (Default)
+ label: Default option
+ dtype: ${type}
+ default: '0'
+- id: option0
+ label: Option 0
dtype: ${ type }
default: '0'
hide: ${ ('none' if int(num_opts) > 0 else 'all') }
@@ -105,7 +109,7 @@ templates:
- self._${id}_callback(${id})
make: |-
<%
- all_options = [ value, option1, option2, option3, option4 ][:int(num_opts)]
+ all_options = [ option0, option1, option2, option3, option4 ][:int(num_opts)]
all_labels = [ label0, label1, label2, label3, label4 ][:int(num_opts)]
%>\
# Create the options list