diff options
author | George Hazan <george.hazan@gmail.com> | 2014-06-28 17:07:02 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-06-28 17:07:02 +0000 |
commit | cd729212350658281b46b9c202587f18e205a87c (patch) | |
tree | 37329eb2f0d21746543897ffd987c7833c7e482d /plugins/PluginUpdater/src/DlgUpdate.cpp | |
parent | 8d11b4da82fdd800bd0d8b2471ba71f5e8593470 (diff) |
defaults changed for PU
git-svn-id: http://svn.miranda-ng.org/main/trunk@9601 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/DlgUpdate.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/DlgUpdate.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/PluginUpdater/src/DlgUpdate.cpp b/plugins/PluginUpdater/src/DlgUpdate.cpp index a64da26ab8..96c3190b56 100644 --- a/plugins/PluginUpdater/src/DlgUpdate.cpp +++ b/plugins/PluginUpdater/src/DlgUpdate.cpp @@ -686,7 +686,7 @@ static void CheckUpdates(void *) if (tszTempPath[dwLen-1] == '\\')
tszTempPath[dwLen-1] = 0;
- ptrT updateUrl( GetDefaultUrl()), baseUrl;
+ ptrT updateUrl(GetDefaultUrl()), baseUrl;
SERVLIST hashes(50, CompareHashes);
bool success = ParseHashes(updateUrl, baseUrl, hashes);
@@ -703,9 +703,9 @@ static void CheckUpdates(void *) opts.bSilent = true;
}
else CallFunctionAsync(LaunchDialog, UpdateFiles);
- } else {
- opts.bSilent = true;
}
+ else opts.bSilent = true;
+
InitTimer(success ? 0 : 2);
hashes.destroy();
@@ -720,7 +720,8 @@ void DoCheck(int iFlag) ShowWindow(hwndDialog, SW_SHOW);
SetForegroundWindow(hwndDialog);
SetFocus(hwndDialog);
- } else if (iFlag) {
+ }
+ else if (iFlag) {
db_set_dw(NULL, MODNAME, "LastUpdate", time(NULL));
hCheckThread = mir_forkthread(CheckUpdates, 0);
}
|