From b7ea804cf96d808a6797f6496f4f4ff6778d3d75 Mon Sep 17 00:00:00 2001 From: Sup Yut Sum Date: Sat, 13 Sep 2014 23:16:40 +0800 Subject: [PATCH] Export: Add post action Explore To Signed-off-by: Sup Yut Sum --- src/TortoiseProc/AppUtils.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/TortoiseProc/AppUtils.cpp b/src/TortoiseProc/AppUtils.cpp index d4552f91e..f9e0d11d3 100644 --- a/src/TortoiseProc/AppUtils.cpp +++ b/src/TortoiseProc/AppUtils.cpp @@ -1029,6 +1029,13 @@ bool CAppUtils::Export(CString *BashHash, const CTGitPath *orgPath) CProgressDlg pro; pro.m_GitCmd=cmd; + pro.m_PostCmdCallback = [&](DWORD status, PostCmdList& postCmdList) + { + if (status) + return; + postCmdList.push_back(PostCmd(IDI_EXPLORER, IDS_STATUSLIST_CONTEXT_EXPLORE, [&]{ CAppUtils::ExploreTo(hWndExplorer, dlg.m_strFile); })); + }; + CGit git; if (!dlg.m_bWholeProject && !dlg.m_orgPath.IsEmpty() && PathIsDirectory(dlg.m_orgPath.GetWinPathString())) { -- 2.11.4.GIT