Commit 83ebd3ec authored by Bastien Nocera's avatar Bastien Nocera

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
parent 4fdb9cee
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment