mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-01-19 15:37:01 +01:00
implemented love
This commit is contained in:
parent
56db97fea5
commit
ef98ac41ce
@ -564,7 +564,8 @@ bool
|
||||
TomahawkWindow::winEvent ( MSG * msg, long * result )
|
||||
{
|
||||
#define TB_PRESSED Q_FUNC_INFO << "Taskbar Button Pressed:"
|
||||
switch(msg->message){
|
||||
switch(msg->message)
|
||||
{
|
||||
case WM_COMMAND:
|
||||
if (HIWORD(msg->wParam) == THBN_CLICKED)
|
||||
{
|
||||
@ -588,7 +589,8 @@ TomahawkWindow::winEvent ( MSG * msg, long * result )
|
||||
break;
|
||||
case 5:
|
||||
tLog()<<TB_PRESSED<<"Love";
|
||||
// AudioEngine::instance()->
|
||||
if(!AudioEngine::instance()->currentTrack().isNull())
|
||||
AudioEngine::instance()->currentTrack()->toQuery()->setLoved( true );
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user