Fixed combobox gpu when there is no vulkan driver
This commit is contained in:
parent
c9406e131c
commit
8ef7672d03
@ -562,22 +562,34 @@ debug_timer () {
|
|||||||
print_warning "It took $DIFF milliseconds"
|
print_warning "It took $DIFF milliseconds"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
combobox_fix () {
|
combobox_fix () {
|
||||||
if [[ -z "$1" ]] || [[ -z "$2" && "$1" != "--empty" ]] ; then
|
if [[ -z "$1" ]] ; then
|
||||||
print_error "no argument specified for combobox_fix"
|
print_error "no argument specified for combobox_fix"
|
||||||
return 1
|
return 1
|
||||||
else
|
else
|
||||||
if [[ "$1" == "--disabled" ]] || [[ "$1" == "--empty" ]] ; then
|
if [[ "$1" == "--disabled" ]] ; then
|
||||||
if [[ -z "$3" ]] ; then
|
if [[ -z "$3" ]] ; then
|
||||||
print_error "no argument specified for combobox_fix"
|
echo "disabled"
|
||||||
return 1
|
return 0
|
||||||
|
fi
|
||||||
|
name1="$2"
|
||||||
|
name2="$3"
|
||||||
|
elif [[ "$1" == "--empty" ]] ; then
|
||||||
|
if [[ -z "$3" ]] ; then
|
||||||
|
echo ""
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
name1="$2"
|
name1="$2"
|
||||||
name2="$3"
|
name2="$3"
|
||||||
else
|
else
|
||||||
name1="$1"
|
name1="$1"
|
||||||
|
if [[ -z "$2" ]] ; then
|
||||||
|
echo "${name1}"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
name2="$2"
|
name2="$2"
|
||||||
fi
|
fi
|
||||||
name3="${name2//\!${name1}\!/\!}"
|
name3="${name2//\!${name1}\!/\!}"
|
||||||
|
Loading…
Reference in New Issue
Block a user