mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Recompute listing_device_name_length_max for MacOS case, too.
This commit is contained in:
parent
53bb2a6ad1
commit
fc0c6f61d2
1 changed files with 6 additions and 0 deletions
|
|
@ -1883,6 +1883,12 @@ GList *tty_search_for_serial_devices(void)
|
||||||
|
|
||||||
// Add device information to device list
|
// Add device information to device list
|
||||||
device_list = g_list_append(device_list, device);
|
device_list = g_list_append(device_list, device);
|
||||||
|
|
||||||
|
// Update length of longest device name string
|
||||||
|
if (strlen(device->path) > listing_device_name_length_max)
|
||||||
|
{
|
||||||
|
listing_device_name_length_max = strlen(device->path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_list_length(device_list) == 0)
|
if (g_list_length(device_list) == 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue