fixed func: gui_vkbasalt

This commit is contained in:
Mikhail Tergoev
2024-10-24 20:56:14 +03:00
parent c0fe4fc425
commit 3224aaa754
3 changed files with 9 additions and 13 deletions

View File

@ -4770,17 +4770,13 @@ gui_vkbasalt () {
fi
done
if [[ -n "${PW_VKBASALT_FFX_CAS}" ]] ; then
case "$PW_VKBASALT_FFX_CAS" in
0|-1) VKBASALT_FFX_CAS_GUI="0" ;;
1) VKBASALT_FFX_CAS_GUI="100" ;;
0.0*) VKBASALT_FFX_CAS_GUI="$(echo "$PW_VKBASALT_FFX_CAS" | awk -F'0.0' '{print $2}')" ;;
*) VKBASALT_FFX_CAS_GUI="$(echo "$PW_VKBASALT_FFX_CAS" | awk -F'0.' '{print $2}')" ;;
esac
export VKBASALT_FFX_CAS_GUI
else
VKBASALT_FFX_CAS_GUI=50
fi
case "$PW_VKBASALT_FFX_CAS" in
0|-1) VKBASALT_FFX_CAS_GUI="0" ;;
1) VKBASALT_FFX_CAS_GUI="100" ;;
0.0*) VKBASALT_FFX_CAS_GUI="$(echo "$PW_VKBASALT_FFX_CAS" | awk -F'0.0' '{print $2}')" ;;
*) VKBASALT_FFX_CAS_GUI="$(echo "$PW_VKBASALT_FFX_CAS" | awk -F'0.' '{print $2}')" ;;
esac
export VKBASALT_FFX_CAS_GUI
IFS="%"
"${pw_yad}" --plug=$KEY_FX_GUI --tabnum="1" --form --columns=4 --separator=" " \