From 5d126624ff12bcf17e2983f801757901516fb6a0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Strau=C3=9F?= Date: Sun, 1 Dec 2013 22:34:21 +0100 Subject: [PATCH] TortoiseGitBlame: Show wait cursor after toggling MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Strauß Signed-off-by: Sven Strickroth --- src/TortoiseGitBlame/TortoiseGitBlameView.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/TortoiseGitBlame/TortoiseGitBlameView.cpp b/src/TortoiseGitBlame/TortoiseGitBlameView.cpp index dbc220570..d377a78ba 100644 --- a/src/TortoiseGitBlame/TortoiseGitBlameView.cpp +++ b/src/TortoiseGitBlame/TortoiseGitBlameView.cpp @@ -2017,8 +2017,11 @@ void CTortoiseGitBlameView::OnUpdateViewToggleShowOriginalLineNumber(CCmdUI *pCm void CTortoiseGitBlameView::OnViewDetectMovedOrCopiedLines(DWORD dwDetectMovedOrCopiedLines) { + m_bIgnoreWhitespace = ! m_bIgnoreWhitespace; m_dwDetectMovedOrCopiedLines = dwDetectMovedOrCopiedLines; + theApp.DoWaitCursor(1); + theApp.WriteInt(_T("DetectMovedOrCopiedLines"), m_dwDetectMovedOrCopiedLines); CTortoiseGitBlameDoc *document = (CTortoiseGitBlameDoc *) m_pDocument; @@ -2028,6 +2031,7 @@ void CTortoiseGitBlameView::OnViewDetectMovedOrCopiedLines(DWORD dwDetectMovedOr theApp.m_pDocManager->OnFileNew(); document->OnOpenDocument(document->m_CurrentFileName, document->m_Rev); } + theApp.DoWaitCursor(-1); } void CTortoiseGitBlameView::OnViewDetectMovedOrCopiedLinesToggleDisabled() @@ -2084,6 +2088,8 @@ void CTortoiseGitBlameView::OnViewToggleIgnoreWhitespace() { m_bIgnoreWhitespace = ! m_bIgnoreWhitespace; + theApp.DoWaitCursor(1); + theApp.WriteInt(_T("IgnoreWhitespace"), m_bIgnoreWhitespace ? 1 : 0); CTortoiseGitBlameDoc *document = (CTortoiseGitBlameDoc *) m_pDocument; @@ -2093,6 +2099,7 @@ void CTortoiseGitBlameView::OnViewToggleIgnoreWhitespace() theApp.m_pDocManager->OnFileNew(); document->OnOpenDocument(document->m_CurrentFileName, document->m_Rev); } + theApp.DoWaitCursor(-1); } void CTortoiseGitBlameView::OnUpdateViewToggleIgnoreWhitespace(CCmdUI *pCmdUI) @@ -2104,6 +2111,8 @@ void CTortoiseGitBlameView::OnViewToggleShowCompleteLog() { m_bShowCompleteLog = ! m_bShowCompleteLog; + theApp.DoWaitCursor(1); + theApp.WriteInt(_T("ShowCompleteLog"), m_bShowCompleteLog ? 1 : 0); CTortoiseGitBlameDoc *document = (CTortoiseGitBlameDoc *) m_pDocument; @@ -2113,6 +2122,7 @@ void CTortoiseGitBlameView::OnViewToggleShowCompleteLog() theApp.m_pDocManager->OnFileNew(); document->OnOpenDocument(document->m_CurrentFileName, document->m_Rev); } + theApp.DoWaitCursor(-1); } void CTortoiseGitBlameView::OnUpdateViewToggleShowCompleteLog(CCmdUI *pCmdUI) -- 2.11.4.GIT