diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2014-06-29 18:14:17 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2014-06-29 18:14:17 +0000 |
commit | d10d29da43c16bd537abcac6bf5314a49d30a938 (patch) | |
tree | 2f39d6a2c4e82780a6d841acc0069a19c16e8b59 /plugins/PluginUpdater/src/DlgUpdate.cpp | |
parent | 969481ec4ea41609fa55b80c2ca3629ff7b9279d (diff) |
PluginUpdater:
-More correct way of using Folders plugin
-Code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@9619 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/DlgUpdate.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/DlgUpdate.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/PluginUpdater/src/DlgUpdate.cpp b/plugins/PluginUpdater/src/DlgUpdate.cpp index 18fbe96960..ec16cd7f2f 100644 --- a/plugins/PluginUpdater/src/DlgUpdate.cpp +++ b/plugins/PluginUpdater/src/DlgUpdate.cpp @@ -23,6 +23,7 @@ Boston, MA 02111-1307, USA. static bool bShowDetails;
static HWND hwndDialog;
+HANDLE hCheckThread;
static void SelectAll(HWND hDlg, bool bEnable)
{
@@ -734,3 +735,21 @@ void UninitCheck() if (hwndDialog != NULL)
DestroyWindow(hwndDialog);
}
+
+INT_PTR MenuCommand(WPARAM,LPARAM)
+{
+ opts.bSilent = false;
+ DoCheck(true);
+ return 0;
+}
+
+void InitCheck()
+{
+ CreateServiceFunction(MODNAME"/CheckUpdates", MenuCommand);
+}
+
+void UnloadCheck()
+{
+ if (hCheckThread)
+ hCheckThread = NULL;
+}
\ No newline at end of file |