Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Impulse Generator Menu #501

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions oscplot.c
Original file line number Diff line number Diff line change
Expand Up @@ -6750,17 +6750,17 @@ static gboolean right_click_menu_show(OscPlot *plot, GdkEvent *event)
/* Check if device needs a trigger */
struct iio_device *dev = ref;
const struct iio_device *trigger;
bool has_trigger;
bool needs_trigger;
int ret;

ret = iio_device_get_trigger(dev, &trigger);
has_trigger = false;
if (ret == 0 && trigger) {
has_trigger = true;
needs_trigger = false;
if (ret == 0) {
needs_trigger = true;
}

gtk_widget_set_sensitive(priv->device_trigger_menuitem,
has_trigger);
needs_trigger);

gtk_menu_popup_at_pointer(GTK_MENU(priv->device_settings_menu), event);
return true;
Expand Down
Loading