mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
- Added ability to escape real variables and measures as follows: #*RealVar*# [*RealMeasure*]
- NowPlayingPlugin: Addition change to r880 OpenPlayer fix - Removing tolua++ generation package files
This commit is contained in:
@ -447,7 +447,14 @@ void ExecuteBang(LPCTSTR bang, UINT id)
|
||||
ParentMeasure* parent = child->parent;
|
||||
CPlayer* player = parent->player;
|
||||
|
||||
if (_wcsicmp(bang, L"Pause") == 0)
|
||||
if (!player->IsInitialized())
|
||||
{
|
||||
if (_wcsicmp(bang, L"OpenPlayer") == 0 || _wcsicmp(bang, L"TogglePlayer") == 0)
|
||||
{
|
||||
player->OpenPlayer(parent->playerPath);
|
||||
}
|
||||
}
|
||||
else if (_wcsicmp(bang, L"Pause") == 0)
|
||||
{
|
||||
player->Pause();
|
||||
}
|
||||
@ -471,14 +478,10 @@ void ExecuteBang(LPCTSTR bang, UINT id)
|
||||
{
|
||||
player->OpenPlayer(parent->playerPath);
|
||||
}
|
||||
else if (_wcsicmp(bang, L"ClosePlayer") == 0)
|
||||
else if (_wcsicmp(bang, L"ClosePlayer") == 0 || _wcsicmp(bang, L"TogglePlayer") == 0)
|
||||
{
|
||||
player->ClosePlayer();
|
||||
}
|
||||
else if (_wcsicmp(bang, L"TogglePlayer") == 0)
|
||||
{
|
||||
player->IsInitialized() ? player->ClosePlayer() : player->OpenPlayer(parent->playerPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
LPCTSTR arg = wcschr(bang, L' ');
|
||||
|
Reference in New Issue
Block a user