1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 07:23:24 +01:00

Indicate selected device when printing.

This commit is contained in:
Enni Rosario 2017-10-31 17:32:34 +02:00
parent e844ece28b
commit ebcbc7497b

View File

@ -481,8 +481,9 @@ void print_devices(ToxWindow *self, DeviceType type)
{
int i;
for (i = 0; i < size[type]; ++i)
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "%d: %s", i, devices_names[type][i]);
for (i = 0; i < size[type]; ++i) {
line_info_add(self, NULL, NULL, NULL, SYS_MSG, i == primary_device[type] ? 1 : 0, 0, "%d: %s", i, devices_names[type][i]);
}
return;
}