Commit a0659acb authored by Rafaël Carré's avatar Rafaël Carré

Shows qt4 notification only if the player isn't visible

parent eabbeb18
...@@ -792,7 +792,7 @@ void MainInterface::updateSystrayTooltipName( QString name ) ...@@ -792,7 +792,7 @@ void MainInterface::updateSystrayTooltipName( QString name )
else else
{ {
sysTray->setToolTip( name ); sysTray->setToolTip( name );
if( notificationEnabled ) if( notificationEnabled && ( isHidden() || isMinimized() ) )
{ {
sysTray->showMessage( qtr( "VLC media player" ), name, sysTray->showMessage( qtr( "VLC media player" ), name,
QSystemTrayIcon::NoIcon, 4000 ); QSystemTrayIcon::NoIcon, 4000 );
......
...@@ -71,10 +71,10 @@ static void ShowDialog ( intf_thread_t *, int, int, intf_dialog_args_t * ); ...@@ -71,10 +71,10 @@ static void ShowDialog ( intf_thread_t *, int, int, intf_dialog_args_t * );
#define FILEDIALOG_PATH_TEXT N_("Path to use in file dialog") #define FILEDIALOG_PATH_TEXT N_("Path to use in file dialog")
#define FILEDIALOG_PATH_LONGTEXT N_("Path to use in file dialog") #define FILEDIALOG_PATH_LONGTEXT N_("Path to use in file dialog")
#define NOTIFICATION_TEXT N_("Show notification popup on track change") #define NOTIFICATION_TEXT N_("Show notification popup on track change if VLC is not visible")
#define NOTIFICATION_LONGTEXT N_( \ #define NOTIFICATION_LONGTEXT N_( \
"Show a notification popup with the artist and track name when " \ "Show a notification popup with the artist and track name when " \
"the current playlist item changes." ) "the current playlist item changes, when VLC is minimized or hidden." )
#define ADVANCED_OPTIONS_TEXT N_("Advanced options") #define ADVANCED_OPTIONS_TEXT N_("Advanced options")
#define ADVANCED_OPTIONS_LONGTEXT N_("Activate by default all the" \ #define ADVANCED_OPTIONS_LONGTEXT N_("Activate by default all the" \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment