scm stash: on stash don't refresh all panels, let user decide on focus.

Removed the call to mainview_refresh_all which means after stashing
of changes the user can decide to reload the file contents when
focussing the editor.
This commit is contained in:
Al Poole 2017-08-30 23:55:34 +01:00
parent 1ed7c297cb
commit 9ea0ba05c3
2 changed files with 6 additions and 4 deletions

View File

@ -1025,7 +1025,6 @@ static void
_edi_scm_stash_do_cb(void *data EINA_UNUSED)
{
edi_scm_stash();
edi_mainview_refresh_all();
}
static void

View File

@ -271,9 +271,12 @@ _promote(void *data, Evas_Object *obj EINA_UNUSED,
panel = edi_mainview_panel_for_item_get((Edi_Mainview_Item *)data);
editor = (Edi_Editor *)evas_object_data_get(panel->current->view, "editor");
if (editor)
elm_object_focus_set(editor->entry, EINA_FALSE);
if (panel && panel->current)
{
editor = (Edi_Editor *)evas_object_data_get(panel->current->view, "editor");
if (editor)
elm_object_focus_set(editor->entry, EINA_FALSE);
}
edi_mainview_panel_item_select(panel, (Edi_Mainview_Item *)data);
}