[vlc-commits] qt: postpone the creation of the systray

Pierre Lamot git at videolan.org
Mon Sep 21 10:23:45 CEST 2020


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Wed Aug 26 16:17:34 2020 +0200| [dfa1305adfcf47ade74a3f569f4f680de00b9f36] | committer: Pierre Lamot

qt: postpone the creation of the systray

  This speedup the application startup as the systray creation is done
  synchronously.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dfa1305adfcf47ade74a3f569f4f680de00b9f36
---

 modules/gui/qt/maininterface/main_interface.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/maininterface/main_interface.cpp b/modules/gui/qt/maininterface/main_interface.cpp
index 69ef7bb40b..8e4d2f7baf 100644
--- a/modules/gui/qt/maininterface/main_interface.cpp
+++ b/modules/gui/qt/maininterface/main_interface.cpp
@@ -166,7 +166,8 @@ MainInterface::MainInterface(intf_thread_t *_p_intf , QWidget* parent, Qt::Windo
     /*********************************
      * Create the Systray Management *
      *********************************/
-    initSystray();
+    //postpone systray initialisation to speedup starting time
+    QMetaObject::invokeMethod(this, &MainInterface::initSystray, Qt::QueuedConnection);
 
     /*************************************************************
      * Connect the input manager to the GUI elements it manages  *



More information about the vlc-commits mailing list