1
0
mirror of https://github.com/AG7GN/nexus-utilities.git synced 2025-05-28 04:10:19 -07:00

Add notification when audio devices are set to null for pat and APRS GUIs

This commit is contained in:
Steve Magnuson 2021-02-26 10:55:57 -08:00
parent a09dbc7e75
commit 7c1d5a4f7d
2 changed files with 13 additions and 2 deletions

View File

@ -16,7 +16,7 @@
#%
#================================================================
#- IMPLEMENTATION
#- version ${SCRIPT_NAME} 1.0.8
#- version ${SCRIPT_NAME} 1.0.9
#- author Steve Magnuson, AG7GN
#- license CC-BY-SA Creative Commons License
#- script_id 0
@ -499,6 +499,11 @@ do
# Retrieve saved settings or defaults if there are no saved settings
loadSettings $CONFIG_FILE
if [[ ${F[_ADEVICE_CAPTURE_]} == "null" || ${F[_ADEVICE_PLAY_]} == "null" ]]
then
yad --center --title="$TITLE" --borders=10 --text "<big><b>Audio device(s) are not set!</b></big>\nClick <b>Continue</b> below, then select the <b>Configure TNC</b> tab to select audio devices and PTT settings." --text-align=center --button="Continue":0 --buttons-layout=center
fi
YAD_PIDs=()
# Start the monitor tab

View File

@ -15,7 +15,7 @@
#%
#================================================================
#- IMPLEMENTATION
#- version ${SCRIPT_NAME} 1.8.0
#- version ${SCRIPT_NAME} 1.8.1
#- author Steve Magnuson, AG7GN
#- license CC-BY-SA Creative Commons License
#- script_id 0
@ -442,6 +442,12 @@ do
rm -f $TMPDIR/CONFIGURE_TNC.txt $TMPDIR/CONFIGURE_PAT.txt
rm -f /tmp/kisstnc
loadSettings
if [[ ${F[_ADEVICE_CAPTURE_]} == "null" || ${F[_ADEVICE_PLAY_]} == "null" ]]
then
yad --center --title="Direwolf TNC and pat $VERSION" --borders=10 --text "<big><b>Audio device(s) are not set!</b></big>\nClick <b>Continue</b> below, then select the <b>Configure TNC</b> tab to select audio devices and PTT settings." --text-align=center --button="Continue":0 --buttons-layout=center
fi
YAD_PIDs=()
# Start the tail window tab