LEFT | RIGHT |
(no file at all) | |
1 #include "PluginStdAfx.h" | 1 #include "PluginStdAfx.h" |
2 | 2 |
3 #include <ctime> | 3 #include <ctime> |
4 | 4 |
5 #include "PluginClass.h" | 5 #include "PluginClass.h" |
6 #include "PluginDictionary.h" | 6 #include "PluginDictionary.h" |
7 #include "PluginSettings.h" | 7 #include "PluginSettings.h" |
8 #include "PluginSystem.h" | 8 #include "PluginSystem.h" |
9 #include "PluginConfiguration.h" | 9 #include "PluginConfiguration.h" |
10 #ifdef SUPPORT_FILTER | 10 #ifdef SUPPORT_FILTER |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 { | 155 { |
156 if (today == lastUpdate || std::difftime(today, lastUpdate) / (60 * 60 * 2
4) >= 5.0) | 156 if (today == lastUpdate || std::difftime(today, lastUpdate) / (60 * 60 * 2
4) >= 5.0) |
157 { | 157 { |
158 CString updateVersion = settings->GetString(SETTING_PLUGIN_UPDATE_VERSIO
N); | 158 CString updateVersion = settings->GetString(SETTING_PLUGIN_UPDATE_VERSIO
N); |
159 | 159 |
160 DEBUG_GENERAL(L"*** Displaying update plugin dialog for version " + upda
teVersion); | 160 DEBUG_GENERAL(L"*** Displaying update plugin dialog for version " + upda
teVersion); |
161 | 161 |
162 // Show update dialog | 162 // Show update dialog |
163 CUpdateDialog uDlg; | 163 CUpdateDialog uDlg; |
164 | 164 |
165 uDlg.SetVersions(updateVersion, _T(IEPLUGIN_VERSION)); | 165 uDlg.SetVersions(updateVersion, IEPLUGIN_VERSION); |
166 | 166 |
167 if (uDlg.DoModal(::GetDesktopWindow()) == IDOK) | 167 if (uDlg.DoModal(::GetDesktopWindow()) == IDOK) |
168 { | 168 { |
169 s_isPluginToBeUpdated = true; | 169 s_isPluginToBeUpdated = true; |
170 } | 170 } |
171 | 171 |
172 settings->SetValue(SETTING_PLUGIN_UPDATE_TIME, (int)today); | 172 settings->SetValue(SETTING_PLUGIN_UPDATE_TIME, (int)today); |
173 settings->Write(); | 173 settings->Write(); |
174 } | 174 } |
175 } | 175 } |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 bool isDone = false; | 349 bool isDone = false; |
350 | 350 |
351 s_criticalSectionLocal.Lock(); | 351 s_criticalSectionLocal.Lock(); |
352 { | 352 { |
353 isDone = s_isMainThreadDone || mainThread != s_hMainThread; | 353 isDone = s_isMainThreadDone || mainThread != s_hMainThread; |
354 } | 354 } |
355 s_criticalSectionLocal.Unlock(); | 355 s_criticalSectionLocal.Unlock(); |
356 | 356 |
357 return isDone; | 357 return isDone; |
358 } | 358 } |
LEFT | RIGHT |