forked from enlightenment/enlightenment
parent
5b4f108d9c
commit
3f2657c5d5
|
@ -75,6 +75,7 @@ _fill_data(E_Config_Dialog_Data *cfdata)
|
||||||
#ifdef HAVE_EEZE_UDEV
|
#ifdef HAVE_EEZE_UDEV
|
||||||
cfdata->fuzzy = battery_config->fuzzy;
|
cfdata->fuzzy = battery_config->fuzzy;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ((cfdata->alert_time > 0) || (cfdata->alert_percent > 0))
|
if ((cfdata->alert_time > 0) || (cfdata->alert_percent > 0))
|
||||||
cfdata->show_alert = 1;
|
cfdata->show_alert = 1;
|
||||||
else
|
else
|
||||||
|
@ -282,6 +283,7 @@ _advanced_apply_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfda
|
||||||
#ifdef HAVE_EEZE_UDEV
|
#ifdef HAVE_EEZE_UDEV
|
||||||
battery_config->fuzzy = cfdata->fuzzy;
|
battery_config->fuzzy = cfdata->fuzzy;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (cfdata->show_alert)
|
if (cfdata->show_alert)
|
||||||
{
|
{
|
||||||
_ensure_alert_time(cfdata);
|
_ensure_alert_time(cfdata);
|
||||||
|
@ -318,7 +320,7 @@ _advanced_check_changed(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *c
|
||||||
(cfdata->poll_interval != battery_config->poll_interval) ||
|
(cfdata->poll_interval != battery_config->poll_interval) ||
|
||||||
(cfdata->alert_timeout != battery_config->alert_timeout) ||
|
(cfdata->alert_timeout != battery_config->alert_timeout) ||
|
||||||
#ifdef HAVE_EEZE_UDEV
|
#ifdef HAVE_EEZE_UDEV
|
||||||
(cfdata->fuzzy != battery_config->fuzzy) ||
|
(cfdata->fuzzy != battery_config->fuzzy) ||
|
||||||
#endif
|
#endif
|
||||||
(cfdata->force_mode != battery_config->force_mode) ||
|
(cfdata->force_mode != battery_config->force_mode) ||
|
||||||
(cfdata->show_alert != old_show_alert) ||
|
(cfdata->show_alert != old_show_alert) ||
|
||||||
|
|
Loading…
Reference in New Issue