diff --git a/Plugins/PluginFileView/PluginFileView.cpp b/Plugins/PluginFileView/PluginFileView.cpp index 13cd4b91..fddc72f0 100644 --- a/Plugins/PluginFileView/PluginFileView.cpp +++ b/Plugins/PluginFileView/PluginFileView.cpp @@ -167,6 +167,8 @@ PLUGIN_EXPORT void Reload(void* data, void* rm, double* maxValue) child->parent->extensions = Tokenize(RmReadString(rm, L"Extensions", L""), L";"); child->parent->wildcardSearch = RmReadString(rm, L"WildcardSearch", L"*"); + + child->parent->finishAction = RmReadString(rm, L"FinishAction", L"", false); } auto iter = std::find(child->parent->children.begin(), child->parent->children.end(), child); @@ -875,6 +877,11 @@ unsigned __stdcall SystemThreadProc(void* pParam) parent->thread = NULL; LeaveCriticalSection(&g_CriticalSection); + if (!parent->finishAction.empty()) + { + RmExecute(parent->skin, parent->finishAction.c_str()); + } + _endthreadex(0); return 0; } diff --git a/Plugins/PluginFileView/PluginFileView.h b/Plugins/PluginFileView/PluginFileView.h index 418326ab..1db155f5 100644 --- a/Plugins/PluginFileView/PluginFileView.h +++ b/Plugins/PluginFileView/PluginFileView.h @@ -111,6 +111,7 @@ struct ParentMeasure bool showSystem; bool hideExtension; std::vector extensions; // only show these extensions + std::wstring finishAction; // Internal values std::vector children; @@ -143,6 +144,7 @@ struct ParentMeasure showSystem(false), hideExtension(false), extensions(), + finishAction(), children(NULL), files(NULL), skin(NULL), diff --git a/Plugins/PluginFileView/PluginFileView.rc b/Plugins/PluginFileView/PluginFileView.rc index d9fb5f10..4b6ca512 100644 --- a/Plugins/PluginFileView/PluginFileView.rc +++ b/Plugins/PluginFileView/PluginFileView.rc @@ -7,7 +7,7 @@ // VS_VERSION_INFO VERSIONINFO - FILEVERSION 1,1,0,0 + FILEVERSION 1,2,1,0 PRODUCTVERSION PRODUCTVER FILEFLAGSMASK 0x17L #ifdef _DEBUG @@ -23,7 +23,7 @@ VS_VERSION_INFO VERSIONINFO { BLOCK "040904E4" { - VALUE "FileVersion", "1.1.0.0" + VALUE "FileVersion", "1.2.0.0" VALUE "LegalCopyright", "© 2012 - Brian Ferguson" VALUE "ProductName", "Rainmeter" #ifdef _WIN64