Batman: Don't show time left in the popup when battery is charged.
This commit is contained in:
parent
67a59e5df5
commit
5489f690cc
|
@ -89,8 +89,15 @@ _batman_popup_create(Instance *inst)
|
|||
|
||||
frame = elm_frame_add(popup);
|
||||
E_EXPAND(frame); E_FILL(frame);
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue