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->extensions = Tokenize(RmReadString(rm, L"Extensions", L""), L";");
|
||||||
|
|
||||||
child->parent->wildcardSearch = RmReadString(rm, L"WildcardSearch", 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);
|
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;
|
parent->thread = NULL;
|
||||||
LeaveCriticalSection(&g_CriticalSection);
|
LeaveCriticalSection(&g_CriticalSection);
|
||||||
|
|
||||||
|
if (!parent->finishAction.empty())
|
||||||
|
{
|
||||||
|
RmExecute(parent->skin, parent->finishAction.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
_endthreadex(0);
|
_endthreadex(0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -111,6 +111,7 @@ struct ParentMeasure
|
|||||||
bool showSystem;
|
bool showSystem;
|
||||||
bool hideExtension;
|
bool hideExtension;
|
||||||
std::vector<std::wstring> extensions; // only show these extensions
|
std::vector<std::wstring> extensions; // only show these extensions
|
||||||
|
std::wstring finishAction;
|
||||||
|
|
||||||
// Internal values
|
// Internal values
|
||||||
std::vector<ChildMeasure*> children;
|
std::vector<ChildMeasure*> children;
|
||||||
@ -143,6 +144,7 @@ struct ParentMeasure
|
|||||||
showSystem(false),
|
showSystem(false),
|
||||||
hideExtension(false),
|
hideExtension(false),
|
||||||
extensions(),
|
extensions(),
|
||||||
|
finishAction(),
|
||||||
children(NULL),
|
children(NULL),
|
||||||
files(NULL),
|
files(NULL),
|
||||||
skin(NULL),
|
skin(NULL),
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION 1,1,0,0
|
FILEVERSION 1,2,1,0
|
||||||
PRODUCTVERSION PRODUCTVER
|
PRODUCTVERSION PRODUCTVER
|
||||||
FILEFLAGSMASK 0x17L
|
FILEFLAGSMASK 0x17L
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
@ -23,7 +23,7 @@ VS_VERSION_INFO VERSIONINFO
|
|||||||
{
|
{
|
||||||
BLOCK "040904E4"
|
BLOCK "040904E4"
|
||||||
{
|
{
|
||||||
VALUE "FileVersion", "1.1.0.0"
|
VALUE "FileVersion", "1.2.0.0"
|
||||||
VALUE "LegalCopyright", "© 2012 - Brian Ferguson"
|
VALUE "LegalCopyright", "© 2012 - Brian Ferguson"
|
||||||
VALUE "ProductName", "Rainmeter"
|
VALUE "ProductName", "Rainmeter"
|
||||||
#ifdef _WIN64
|
#ifdef _WIN64
|
||||||
|
Loading…
Reference in New Issue
Block a user