From 0ec56ce234d6e08a5e69449abb1ce247ba6fe9a2 Mon Sep 17 00:00:00 2001 From: Darren Lines Date: Wed, 13 Jul 2022 21:25:01 +0100 Subject: [PATCH] Hide switch indicators settings when DJI is used On Hide unused elements: - Remove switch indicators settings - Tidy removal of switch indicator elements --- tabs/osd.html | 2 +- tabs/osd.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tabs/osd.html b/tabs/osd.html index a46a56dc..15d11839 100644 --- a/tabs/osd.html +++ b/tabs/osd.html @@ -243,7 +243,7 @@ -
+
diff --git a/tabs/osd.js b/tabs/osd.js index b789095e..babb9b28 100644 --- a/tabs/osd.js +++ b/tabs/osd.js @@ -493,6 +493,7 @@ OSD.DjiElements = { "Timers", "VTX", "CRSF", + "SwitchIndicators", "GVars", "PIDs", "PIDOutputs", @@ -2571,6 +2572,8 @@ OSD.GUI.updateDjiView = function(on) { $(element).hide(); } }); + + $('.switch-indicator-container').hide(); } else { $(OSD.DjiElements.emptyGroups).each(function(index, groupName) { $('#osdGroup' + groupName).show(); @@ -2583,6 +2586,8 @@ OSD.GUI.updateDjiView = function(on) { $('.settings-container, .alarms-container').find('.settings').children() .show() .removeClass('no-bottom'); + + $('.switch-indicator-container').show(); } OSD.GUI.updateDjiMessageElements($('#useCraftnameForMessages').is(':checked')); };