gpu: Fix windows issue. See: #1759

This commit is contained in:
Dylan Araps 2021-06-11 07:03:16 +00:00
parent 1c954ec556
commit 06b1c77bb8
1 changed files with 7 additions and 5 deletions

View File

@ -2561,12 +2561,14 @@ get_gpu() {
while read -r line; do
line=$(trim "$line")
[[ -z $win_gpu ]] || [[ -z "$line" ]] && {
win_gpu=1
continue
}
case $line in
*Caption*|'')
continue
prin "${subtitle:+${subtitle}${gpu_name}}" "$line"
*)
prin "${subtitle:+${subtitle}${gpu_name}}" "$line"
;;
esac
done < <(wmic path Win32_VideoController get caption)
;;