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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user