From 9315390b9f99428600d27c1ca88c449bd06a5801 Mon Sep 17 00:00:00 2001
From: c vw <dl1ycf@darc.de>
Date: Tue, 23 Nov 2021 15:30:04 +0100
Subject: [PATCH] VFO_MENU: do not show the "Enable Squelch" check-box if the
 sliders are displayed.

---
 vfo_menu.c | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/vfo_menu.c b/vfo_menu.c
index 0508a48..a42f99d 100644
--- a/vfo_menu.c
+++ b/vfo_menu.c
@@ -300,10 +300,16 @@ void vfo_menu(GtkWidget *parent,int vfo) {
   gtk_grid_attach(GTK_GRID(grid),vfo_b,4,3,1,1);
 
 
-  GtkWidget *enable_squelch=gtk_check_button_new_with_label("Enable Squelch");
-  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (enable_squelch), active_receiver->squelch_enable);
-  gtk_grid_attach(GTK_GRID(grid),enable_squelch,3,5,1,1);
-  g_signal_connect(enable_squelch,"toggled",G_CALLBACK(squelch_enable_cb),NULL);
+  if (!display_sliders) {
+    //
+    // If the sliders are "on display", then we also have a squelch-enable checkbox
+    // in the display area.
+    // 
+    GtkWidget *enable_squelch=gtk_check_button_new_with_label("Enable Squelch");
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (enable_squelch), active_receiver->squelch_enable);
+    gtk_grid_attach(GTK_GRID(grid),enable_squelch,3,5,1,1);
+    g_signal_connect(enable_squelch,"toggled",G_CALLBACK(squelch_enable_cb),NULL);
+  }
 
 #ifdef PURESIGNAL
   if(can_transmit && (protocol==ORIGINAL_PROTOCOL || protocol==NEW_PROTOCOL)) {
-- 
2.45.2