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