OSDN Git Service

Add Shell Notification at add, cleanup and remove and rename, CommitDlg.cpp
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / CommitDlg.cpp
index 7bf2c24..b2e0879 100644 (file)
@@ -33,6 +33,7 @@
 #include "CommonResource.h"\r
 #include "UnicodeUtils.h"\r
 #include "ProgressDlg.h"\r
+#include "ShellUpdater.h"\r
 \r
 #ifdef _DEBUG\r
 #define new DEBUG_NEW\r
@@ -406,6 +407,7 @@ void CCommitDlg::OnOK()
 \r
                        g_Git.Run(cmd,&out,CP_OEMCP);\r
                        nchecked++;\r
+\r
                        //checkedLists.insert(entry->GetGitPathString());\r
 //                     checkedfiles += _T("\"")+entry->GetGitPathString()+_T("\" ");\r
                }\r
@@ -449,6 +451,8 @@ void CCommitDlg::OnOK()
                        }\r
 #endif\r
                }\r
+\r
+               CShellUpdater::Instance().AddPathForUpdate(*entry);\r
        }\r
 \r
        //if(uncheckedfiles.GetLength()>0)\r
@@ -626,6 +630,8 @@ void CCommitDlg::OnOK()
        SaveSplitterPos();\r
 \r
        CResizableStandAloneDialog::OnOK();\r
+\r
+       CShellUpdater::Instance().Flush();\r
 }\r
 \r
 void CCommitDlg::SaveSplitterPos()\r