Commit 5dfa7025 authored by Mikhail Tergoev's avatar Mikhail Tergoev

Merge branch 'Htylol-fixed-combobox-gpu' into devel

parents 782f59fb 1651cdbd
......@@ -562,22 +562,34 @@ debug_timer () {
print_warning "It took $DIFF milliseconds"
fi
fi
return 0
}
combobox_fix () {
if [[ -z "$1" ]] || [[ -z "$2" && "$1" != "--empty" ]] ; then
if [[ -z "$1" ]] ; then
print_error "no argument specified for combobox_fix"
return 1
else
if [[ "$1" == "--disabled" ]] || [[ "$1" == "--empty" ]] ; then
if [[ "$1" == "--disabled" ]] ; then
if [[ -z "$3" ]] ; then
print_error "no argument specified for combobox_fix"
return 1
echo "disabled"
return 0
fi
name1="$2"
name2="$3"
elif [[ "$1" == "--empty" ]] ; then
if [[ -z "$3" ]] ; then
echo ""
return 0
fi
name1="$2"
name2="$3"
else
name1="$1"
if [[ -z "$2" ]] ; then
echo "${name1}"
return 0
fi
name2="$2"
fi
name3="${name2//\!${name1}\!/\!}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment