[bluetooth_info.pl]: Print icon only if exists

This commit is contained in:
2025-01-30 21:12:35 +00:00
parent 129583d572
commit c9411fed6a

View File

@ -16,4 +16,5 @@ my %icons = (
"audio-headset" => "" "audio-headset" => ""
); );
printf("$icons{$icon} $device_name $battery_percentage%%"); printf("$icons{$icon} ") if exists $icons{$icon};
printf("$device_name $battery_percentage%%");