forked from enlightenment/enlightenment
parent
3f81c54fc1
commit
df67f5838d
|
@ -71,8 +71,9 @@ _fill_data(E_Config_Dialog_Data *cfdata)
|
||||||
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;
|
||||||
cfdata->force_mode = battery_config->force_mode;
|
cfdata->force_mode = battery_config->force_mode;
|
||||||
|
#ifdef HAVE_EEZE_UDEV
|
||||||
cfdata->fuzzy = battery_config->fuzzy;
|
cfdata->fuzzy = battery_config->fuzzy;
|
||||||
|
#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
|
||||||
|
@ -272,8 +273,9 @@ _advanced_apply_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfda
|
||||||
if (!battery_config) return 0;
|
if (!battery_config) return 0;
|
||||||
|
|
||||||
battery_config->poll_interval = cfdata->poll_interval;
|
battery_config->poll_interval = cfdata->poll_interval;
|
||||||
|
#ifdef HAVE_EEZE_UDEV
|
||||||
battery_config->fuzzy = cfdata->fuzzy;
|
battery_config->fuzzy = cfdata->fuzzy;
|
||||||
|
#endif
|
||||||
if (cfdata->show_alert)
|
if (cfdata->show_alert)
|
||||||
{
|
{
|
||||||
_ensure_alert_time(cfdata);
|
_ensure_alert_time(cfdata);
|
||||||
|
@ -309,7 +311,9 @@ _advanced_check_changed(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *c
|
||||||
(cfdata->alert_percent != battery_config->alert_p) ||
|
(cfdata->alert_percent != battery_config->alert_p) ||
|
||||||
(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
|
||||||
(cfdata->fuzzy != battery_config->fuzzy) ||
|
(cfdata->fuzzy != battery_config->fuzzy) ||
|
||||||
|
#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) ||
|
||||||
(cfdata->dismiss_alert != old_dismiss_alert));
|
(cfdata->dismiss_alert != old_dismiss_alert));
|
||||||
|
|
Loading…
Reference in New Issue