From 0e36585693a8d0e80c30d73af2c65df32af6d590 Mon Sep 17 00:00:00 2001 From: Ivy233 Date: Tue, 19 May 2026 14:22:49 +0800 Subject: [PATCH] fix(dock): extend tray plugin list logging delay to ensure stable load MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 延长托盘插件列表日志记录延时以等待插件完全加载 PMS: BUG-361067 --- debian/control | 3 ++- panels/dock/dockdbusproxy.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index 306c26b3c..3a61f09ce 100644 --- a/debian/control +++ b/debian/control @@ -5,7 +5,7 @@ Maintainer: Deepin Packages Builder Build-Depends: debhelper-compat (= 13), cmake, - dde-application-manager-api (>> 1.2.51), + dde-application-manager-api (>= 1.2.48), dde-api-dev (>> 6.0.39), dde-tray-loader-dev (> 2.0.24), extra-cmake-modules, @@ -82,6 +82,7 @@ Depends: qml6-module-qtquick-layouts, qml6-module-qtquick-window, qt6-wayland (>= 6.8), + dde-application-manager (>> 1.2.51), ${misc:Depends}, ${shlibs:Depends}, Breaks: diff --git a/panels/dock/dockdbusproxy.cpp b/panels/dock/dockdbusproxy.cpp index b321df5f4..5f6ec8581 100644 --- a/panels/dock/dockdbusproxy.cpp +++ b/panels/dock/dockdbusproxy.cpp @@ -81,7 +81,8 @@ DockDBusProxy::DockDBusProxy(DockPanel* parent) timer->stop(); timer->deleteLater(); connect(m_trayApplet, SIGNAL(pluginsChanged()), this, SIGNAL(pluginsChanged())); - QTimer::singleShot(3000, this, [this]() { + // Log the initial plugin list after 30s delay to ensure the list has fully loaded + QTimer::singleShot(30000, this, [this]() { logInitialPluginState(); }); }