]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
No restart button for SOAPY.
authorc vw <dl1ycf@darc.de>
Tue, 20 Jul 2021 16:16:48 +0000 (18:16 +0200)
committerc vw <dl1ycf@darc.de>
Tue, 20 Jul 2021 16:16:48 +0000 (18:16 +0200)
new_menu.c

index 695edd45f8c8a86f92d0c4935bca6ca86783f927..b105fabf8d23954672384bb479fbb9ab770462f3 100644 (file)
@@ -484,9 +484,11 @@ void new_menu()
     // The "Restart" restarts the protocol
     // This may help to recover from certain error conditions
     //
-    GtkWidget *restart_b=gtk_button_new_with_label("Restart");
-    g_signal_connect (restart_b, "button-press-event", G_CALLBACK(restart_cb), NULL);
-    gtk_grid_attach(GTK_GRID(grid),restart_b,2,0,2,1);
+    if (protocol != SOAPYSDR_PROTOCOL) {
+      GtkWidget *restart_b=gtk_button_new_with_label("Restart");
+      g_signal_connect (restart_b, "button-press-event", G_CALLBACK(restart_cb), NULL);
+      gtk_grid_attach(GTK_GRID(grid),restart_b,2,0,2,1);
+    }
 
     GtkWidget *exit_b=gtk_button_new_with_label("Exit piHPSDR");
     g_signal_connect (exit_b, "button-press-event", G_CALLBACK(exit_cb), NULL);