From 48de567bb9ef12b850978b268eec7facdd9cac6a Mon Sep 17 00:00:00 2001
From: c vw <dl1ycf@darc.de>
Date: Tue, 20 Jul 2021 18:16:48 +0200
Subject: [PATCH] No restart button for SOAPY.

---
 new_menu.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/new_menu.c b/new_menu.c
index 695edd4..b105fab 100644
--- a/new_menu.c
+++ b/new_menu.c
@@ -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);
-- 
2.45.2