mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-04 21:08:10 +02:00
daemon: Don't count hidden devices
This commit is contained in:
parent
d532d2a230
commit
d998510753
1 changed files with 2 additions and 1 deletions
|
|
@ -111,7 +111,8 @@ up_daemon_get_number_devices_of_type (UpDaemon *daemon, UpDeviceKind type)
|
|||
g_object_get (device,
|
||||
"type", &type_tmp,
|
||||
NULL);
|
||||
if (type == type_tmp)
|
||||
if (type == type_tmp &&
|
||||
up_device_get_object_path (device) != NULL)
|
||||
count++;
|
||||
}
|
||||
g_ptr_array_unref (array);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue