save: wrong thread for this api

This commit is contained in:
Alastair Poole 2020-03-14 20:07:38 +00:00
parent 0782c959df
commit 58d9e3dc37
1 changed files with 2 additions and 0 deletions

View File

@ -211,6 +211,7 @@ _async_save_thread_run_cb(void *data, Ecore_Thread *thread EINA_UNUSED)
editor = async_save->editor; editor = async_save->editor;
code = async_save->code; code = async_save->code;
ecore_thread_main_loop_begin();
elm_code_file_save(code->file); elm_code_file_save(code->file);
editor->save_time = ecore_file_mod_time(elm_code_file_path_get(code->file)); editor->save_time = ecore_file_mod_time(elm_code_file_path_get(code->file));
@ -221,6 +222,7 @@ _async_save_thread_run_cb(void *data, Ecore_Thread *thread EINA_UNUSED)
ecore_timer_del(editor->save_timer); ecore_timer_del(editor->save_timer);
editor->save_timer = NULL; editor->save_timer = NULL;
} }
ecore_thread_main_loop_end();
} }
static void static void