Skip to content

Commit

Permalink
oscplot: ensure channels dispalyed in save dialog are all inputs
Browse files Browse the repository at this point in the history
Signed-off-by: Cristina Suteu <[email protected]>
  • Loading branch information
cristina-suteu committed Oct 17, 2023
1 parent a0e8f49 commit 584eccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oscplot.c
Original file line number Diff line number Diff line change
Expand Up @@ -4504,7 +4504,7 @@ static void copy_channel_state_to_selection_channel(GtkTreeModel *model,
for (node = ch_checkbtns; node; node = g_list_next(node)) {
btn = (GtkToggleButton *)node->data;
g_object_get(btn, "label", &btn_label, NULL);
if (!strcmp(ch_name, btn_label)) {
if (!strcmp(ch_name, btn_label) && !iio_channel_is_output(chn)) {
gtk_toggle_button_set_active(btn, active_state);
g_free(btn_label);
break;
Expand Down

0 comments on commit 584eccc

Please sign in to comment.