mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-15 10:33:59 +02:00
* React to single- & double-clicks on the TrayIcon.
This commit is contained in:
@@ -109,7 +109,7 @@ TomahawkTrayIcon::onActivated( QSystemTrayIcon::ActivationReason reason )
|
||||
{
|
||||
switch( reason )
|
||||
{
|
||||
case QSystemTrayIcon::DoubleClick:
|
||||
case QSystemTrayIcon::Trigger:
|
||||
{
|
||||
TomahawkWindow* mainwindow = APP->mainWindow();
|
||||
if ( mainwindow->isVisible() )
|
||||
|
@@ -178,8 +178,9 @@ TomahawkWindow::closeEvent( QCloseEvent* e )
|
||||
#ifndef Q_WS_MAC
|
||||
if ( QSystemTrayIcon::isSystemTrayAvailable() )
|
||||
{
|
||||
e->ignore();
|
||||
hide();
|
||||
e->ignore();
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user