]> git.sesse.net Git - vlc/commitdiff
Shows qt4 notification only if the player isn't visible
authorRafaël Carré <funman@videolan.org>
Sat, 8 Sep 2007 01:32:33 +0000 (01:32 +0000)
committerRafaël Carré <funman@videolan.org>
Sat, 8 Sep 2007 01:32:33 +0000 (01:32 +0000)
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/qt4.cpp

index 0dd678cb5a4ba8cdd4f9d04579664dc4588645c1..6c5a0be020e859f1525049fefef78afa0e512383 100644 (file)
@@ -792,7 +792,7 @@ void MainInterface::updateSystrayTooltipName( QString name )
     else
     {
         sysTray->setToolTip( name );
-        if( notificationEnabled )
+        if( notificationEnabled && ( isHidden() || isMinimized() ) )
         {
             sysTray->showMessage( qtr( "VLC media player" ), name,
                     QSystemTrayIcon::NoIcon, 4000 );
index a1c8591970b8c52cc4d820a7294adbc4227e90c6..5048f7483513857411c6660a87a03475d19b80c1 100644 (file)
@@ -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_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_( \
     "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_LONGTEXT N_("Activate by default all the" \