[vlc-commits] [Git][videolan/vlc][master] qt: toggle pause on system tray icon middle click

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sun Jun 23 11:46:25 UTC 2024



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
7b2e9c21 by Fatih Uzunoglu at 2024-06-23T11:33:01+00:00
qt: toggle pause on system tray icon middle click

- - - - -


1 changed file:

- modules/gui/qt/maininterface/mainctx.cpp


Changes:

=====================================
modules/gui/qt/maininterface/mainctx.cpp
=====================================
@@ -695,9 +695,8 @@ void MainCtx::handleSystrayClick(
 #endif
             break;
         case QSystemTrayIcon::MiddleClick:
-            sysTray->showMessage( qtr( "VLC media player" ),
-                    qtr( "Control menu for the player" ),
-                    QSystemTrayIcon::Information, 3000 );
+            if (PlaylistController* const playlistController = p_intf->p_mainPlaylistController)
+                playlistController->togglePlayPause();
             break;
         default:
             break;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7b2e9c21a0c15a98a9752d59e8cc7e64cfadd60a

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7b2e9c21a0c15a98a9752d59e8cc7e64cfadd60a
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list