Dont set MangoHud font size if MONITOR_HEIGHT is empty

This commit is contained in:
Boris Yumankulov 2024-06-28 20:29:51 +05:00
parent f155982677
commit 1349f7452b
No known key found for this signature in database
GPG Key ID: 14B4A5673FD39C76

@ -3644,7 +3644,9 @@ fi
YAD_MH_FPS_LIMIT=$(<"${PORT_WINE_TMP_PATH}/tmp_yad_mh_fps_limit")
MONITOR_HEIGHT="$(echo $PW_SCREEN_RESOLUTION | awk -F'x' '{print $2}')"
MH_FONT_SIZE="font_size=$(( MONITOR_HEIGHT / 45 ))"
if [[ ! -z "$MONITOR_HEIGHT" ]]
then MH_FONT_SIZE="font_size=$(( MONITOR_HEIGHT / 45 ))"
fi
local INT_COUNT_MH=0
for read_list_mh in ${YAD_MH_SET} ; do