okra pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=5489f690cc5563b59f0e05f50ab53c03f6e98300
commit 5489f690cc5563b59f0e05f50ab53c03f6e98300 Author: Stephen 'Okra' Houston <[email protected]> Date: Thu Feb 9 10:21:52 2017 -0600 Batman: Don't show time left in the popup when battery is charged. --- src/modules/sysinfo/batman/batman.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/modules/sysinfo/batman/batman.c b/src/modules/sysinfo/batman/batman.c index d201ae3..dc17cb1 100644 --- a/src/modules/sysinfo/batman/batman.c +++ b/src/modules/sysinfo/batman/batman.c @@ -89,8 +89,15 @@ _batman_popup_create(Instance *inst) frame = elm_frame_add(popup); E_EXPAND(frame); E_FILL(frame); - snprintf(buf, sizeof(buf), _("Time Remaining: %i:%02i"), hrs, mins); - elm_object_text_set(frame, buf); + if (inst->cfg->batman.have_power && (inst->cfg->batman.full < 100)) + elm_object_text_set(frame, _("Battery Charging")); + else if (inst->cfg->batman.have_power && (inst->cfg->batman.full == 100)) + elm_object_text_set(frame, _("Battery Fully Charged")); + else + { + snprintf(buf, sizeof(buf), _("Time Remaining: %i:%02i"), hrs, mins); + elm_object_text_set(frame, buf); + } elm_object_content_set(popup, frame); evas_object_show(frame); --
