forked from enlightenment/enventor
editor: don't auto save always.
If save has been accomplished, we can skip a auto save. This auto save brings enventor unexpected error highlighting twice.
This commit is contained in:
parent
5900c6ac37
commit
3a2c08e6c5
|
@ -1122,8 +1122,13 @@ static Eina_Bool
|
|||
auto_save_timer_cb(void *data)
|
||||
{
|
||||
edit_data *ed = data;
|
||||
edit_save(ed, build_edc_path_get());
|
||||
build_edc();
|
||||
|
||||
//Avoid auto save if save has been already accomplished.
|
||||
if (ed->edit_changed)
|
||||
{
|
||||
edit_save(ed, build_edc_path_get());
|
||||
build_edc();
|
||||
}
|
||||
ed->auto_save_timer = NULL;
|
||||
return ECORE_CALLBACK_CANCEL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue