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