Skip to content

Commit

Permalink
Merge pull request #77 from anselmolsm/master
Browse files Browse the repository at this point in the history
Play/Pause when system tray receives a mouse middle click
  • Loading branch information
lfranchi committed Mar 5, 2012
2 parents 6dead5e + 9daf0a6 commit aa078e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tomahawktrayicon.cpp
Expand Up @@ -200,6 +200,12 @@ TomahawkTrayIcon::onActivated( QSystemTrayIcon::ActivationReason reason )
}
break;

case QSystemTrayIcon::MiddleClick:
{
AudioEngine::instance()->playPause();
}
break;

default:
break;
}
Expand Down

0 comments on commit aa078e8

Please sign in to comment.