From 2e0dfa3712986d0e43d3c66b8cba26dc061d9935 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Tue, 30 Dec 2014 16:02:58 +0100 Subject: [PATCH] Added support for hotfixes (incremental update instead of full download) Hopefully we never need that ;) Signed-off-by: Sven Strickroth --- src/TortoiseProc/CheckForUpdatesDlg.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/TortoiseProc/CheckForUpdatesDlg.cpp b/src/TortoiseProc/CheckForUpdatesDlg.cpp index 952344169..952209f8d 100644 --- a/src/TortoiseProc/CheckForUpdatesDlg.cpp +++ b/src/TortoiseProc/CheckForUpdatesDlg.cpp @@ -375,7 +375,13 @@ void CCheckForUpdatesDlg::FillDownloads(CAutoConfig& versioncheck, const CString if (m_sFilesURL.IsEmpty()) m_sFilesURL.Format(_T("http://updater.download.tortoisegit.org/tgit/%s/"), version); - m_ctrlFiles.InsertItem(0, _T("TortoiseGit")); + bool isHotfix = false; + versioncheck.GetBool(_T("tortoisegit.hotfix"), isHotfix); + + if (isHotfix) + m_ctrlFiles.InsertItem(0, _T("TortoiseGit Hotfix")); + else + m_ctrlFiles.InsertItem(0, _T("TortoiseGit")); CString filenameMain, filenamePattern; versioncheck.GetString(_T("tortoisegit.mainfilename"), filenamePattern); if (filenamePattern.IsEmpty()) @@ -384,6 +390,12 @@ void CCheckForUpdatesDlg::FillDownloads(CAutoConfig& versioncheck, const CString m_ctrlFiles.SetItemData(0, (DWORD_PTR)(new CUpdateListCtrl::Entry(filenameMain, CUpdateListCtrl::STATUS_NONE))); m_ctrlFiles.SetCheck(0 , TRUE); + if (isHotfix) + { + DialogEnableWindow(IDC_BUTTON_UPDATE, TRUE); + return; + } + struct LangPack { CString m_PackName; -- 2.11.4.GIT