windows: make windows work properly and autosave properly.

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D5116
This commit is contained in:
Al Poole 2017-08-22 12:35:06 +01:00 committed by Andy Williams
parent a004aeae6b
commit e35c4ba3af
2 changed files with 4 additions and 8 deletions

View File

@ -124,7 +124,7 @@ edi_editor_save(Edi_Editor *editor)
filename = elm_code_file_path_get(code->file);
edi_mainview_save();
elm_code_file_save(code->file);
editor->save_time = ecore_file_mod_time(filename);
@ -138,6 +138,8 @@ edi_editor_save(Edi_Editor *editor)
if (edi_language_provider_has(editor))
edi_language_provider_get(editor)->refresh(editor);
ecore_event_add(EDI_EVENT_FILE_SAVED, NULL, NULL, NULL);
}
static Eina_Bool

View File

@ -424,18 +424,12 @@ void
edi_mainview_panel_save(Edi_Mainview_Panel *panel)
{
Edi_Editor *editor;
Elm_Code *code;
editor = (Edi_Editor *)evas_object_data_get(panel->current->view, "editor");
if (!editor)
return;
code = elm_code_widget_code_get(editor->entry);
elm_code_file_save(code->file);
editor->save_time = ecore_file_mod_time(elm_code_file_path_get(code->file));
editor->modified = EINA_FALSE;
ecore_event_add(EDI_EVENT_FILE_SAVED, NULL, NULL, NULL);
edi_editor_save(editor);
}
void