mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-02-07 18:00:30 +01:00
daemon: Update display device when battery is removed
When removing a battery, make sure to go through the batteries, and update the display device status. https://bugs.freedesktop.org/show_bug.cgi?id=86144
This commit is contained in:
parent
4fdb9cee21
commit
83ebd3eccb
1 changed files with 3 additions and 0 deletions
|
|
@ -1070,6 +1070,9 @@ up_daemon_device_removed_cb (UpBackend *backend, GObject *native, UpDevice *devi
|
|||
|
||||
/* finalise the object */
|
||||
g_object_unref (device);
|
||||
|
||||
/* In case a battery was removed */
|
||||
up_daemon_refresh_battery_devices (daemon);
|
||||
}
|
||||
|
||||
#define LOAD_OR_DEFAULT(val, str, def) val = (load_default ? def : up_config_get_uint (daemon->priv->config, str))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue