mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-17 11:30:49 +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 )
|
switch( reason )
|
||||||
{
|
{
|
||||||
case QSystemTrayIcon::DoubleClick:
|
case QSystemTrayIcon::Trigger:
|
||||||
{
|
{
|
||||||
TomahawkWindow* mainwindow = APP->mainWindow();
|
TomahawkWindow* mainwindow = APP->mainWindow();
|
||||||
if ( mainwindow->isVisible() )
|
if ( mainwindow->isVisible() )
|
||||||
|
@@ -178,8 +178,9 @@ TomahawkWindow::closeEvent( QCloseEvent* e )
|
|||||||
#ifndef Q_WS_MAC
|
#ifndef Q_WS_MAC
|
||||||
if ( QSystemTrayIcon::isSystemTrayAvailable() )
|
if ( QSystemTrayIcon::isSystemTrayAvailable() )
|
||||||
{
|
{
|
||||||
e->ignore();
|
|
||||||
hide();
|
hide();
|
||||||
|
e->ignore();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user