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:
parent
1ed7c297cb
commit
9ea0ba05c3
|
@ -1025,7 +1025,6 @@ static void
|
||||||
_edi_scm_stash_do_cb(void *data EINA_UNUSED)
|
_edi_scm_stash_do_cb(void *data EINA_UNUSED)
|
||||||
{
|
{
|
||||||
edi_scm_stash();
|
edi_scm_stash();
|
||||||
edi_mainview_refresh_all();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -271,9 +271,12 @@ _promote(void *data, Evas_Object *obj EINA_UNUSED,
|
||||||
|
|
||||||
panel = edi_mainview_panel_for_item_get((Edi_Mainview_Item *)data);
|
panel = edi_mainview_panel_for_item_get((Edi_Mainview_Item *)data);
|
||||||
|
|
||||||
editor = (Edi_Editor *)evas_object_data_get(panel->current->view, "editor");
|
if (panel && panel->current)
|
||||||
if (editor)
|
{
|
||||||
elm_object_focus_set(editor->entry, EINA_FALSE);
|
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);
|
edi_mainview_panel_item_select(panel, (Edi_Mainview_Item *)data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue