Only perform network availability check

for update check if update checks are enabled
This commit is contained in:
icenine451 2023-06-08 13:52:19 -04:00
parent 147336ba61
commit 93db40176b

View file

@ -170,8 +170,10 @@ desktop_mode_warning
low_space_warning
# Check if there is a new version of RetroDECK available, if update_check=true in retrodeck.cfg and there is network connectivity available.
if [[ $(check_network_connectivity) == "true" ]] && [[ $update_check == "true" ]]; then
check_for_version_update
if [[ $update_check == "true" ]]; then
if [[ $(check_network_connectivity) == "true" ]]; then
check_for_version_update
fi
fi
# Normal Startup