mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Added FinishAction to the FileView plugin
This commit is contained in:
parent
2fc204c6fa
commit
9ba6e01be0
@ -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;
|
||||
}
|
||||
|
@ -111,6 +111,7 @@ struct ParentMeasure
|
||||
bool showSystem;
|
||||
bool hideExtension;
|
||||
std::vector<std::wstring> extensions; // only show these extensions
|
||||
std::wstring finishAction;
|
||||
|
||||
// Internal values
|
||||
std::vector<ChildMeasure*> children;
|
||||
@ -143,6 +144,7 @@ struct ParentMeasure
|
||||
showSystem(false),
|
||||
hideExtension(false),
|
||||
extensions(),
|
||||
finishAction(),
|
||||
children(NULL),
|
||||
files(NULL),
|
||||
skin(NULL),
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user