From 9f75d6bd2bf8eadfec3b383c5fc9ad970d35f3eb Mon Sep 17 00:00:00 2001 From: larshp Date: Sun, 17 Jun 2018 08:23:56 +0000 Subject: [PATCH] refresh repo cache after deletion #1482 --- src/ui/zcl_abapgit_services_git.clas.abap | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/zcl_abapgit_services_git.clas.abap b/src/ui/zcl_abapgit_services_git.clas.abap index fda6bca65..87326ebcc 100644 --- a/src/ui/zcl_abapgit_services_git.clas.abap +++ b/src/ui/zcl_abapgit_services_git.clas.abap @@ -77,7 +77,7 @@ ENDCLASS. -CLASS zcl_abapgit_services_git IMPLEMENTATION. +CLASS ZCL_ABAPGIT_SERVICES_GIT IMPLEMENTATION. METHOD commit. @@ -233,6 +233,7 @@ CLASS zcl_abapgit_services_git IMPLEMENTATION. zcx_abapgit_exception=>raise( 'Cannot reset. Local code is write-protected by repo config' ). ENDIF. +* todo, separate UI and logic lv_answer = zcl_abapgit_ui_factory=>get_popups( )->popup_to_confirm( titlebar = 'Warning' text_question = 'Reset local objects?' @@ -265,6 +266,8 @@ CLASS zcl_abapgit_services_git IMPLEMENTATION. IF lines( lt_selected ) > 0. zcl_abapgit_objects=>delete( lt_selected ). +* update repo cache + lo_repo->refresh( ). ENDIF. ENDIF.