NowPlayingPlugin: iTunes quits are handled a little more gracefully now (i.e. iTunes should now quit immediately without lag)

This commit is contained in:
Birunthan Mohanathas
2011-07-17 10:36:04 +00:00
parent 8515877c48
commit a639eb7cc1
4 changed files with 89 additions and 28 deletions

View File

@ -449,7 +449,7 @@ void ExecuteBang(LPCTSTR bang, UINT id)
if (!player->IsInitialized())
{
if (_wcsicmp(bang, L"ClosePlayer") == 0 || _wcsicmp(bang, L"TogglePlayer") == 0)
if (_wcsicmp(bang, L"OpenPlayer") == 0 || _wcsicmp(bang, L"TogglePlayer") == 0)
{
player->OpenPlayer(parent->playerPath);
}
@ -478,7 +478,7 @@ void ExecuteBang(LPCTSTR bang, UINT id)
{
player->Previous();
}
else if (_wcsicmp(bang, L"OpenPlayer") == 0 || _wcsicmp(bang, L"TogglePlayer") == 0)
else if (_wcsicmp(bang, L"ClosePlayer") == 0 || _wcsicmp(bang, L"TogglePlayer") == 0)
{
player->ClosePlayer();
}