From 65d9cfa6efe24903b54a2c167c76053e469c4de4 Mon Sep 17 00:00:00 2001 From: donghualin Date: Tue, 22 Nov 2022 06:30:27 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E5=B1=95=E5=BC=80=E5=88=97=E8=A1=A8=E5=90=8D=E7=A7=B0=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在插件请求展示列表的时候,需要判断请求的插件是否为当前插件 Log: Influence: 从快捷面板打开网络列表,观察标题是否为网络 Task: https://pms.uniontech.com/task-view-218733.html Change-Id: Ie2c19d76561918fd9aa6fc464f2a1f1bd0c35d37 --- frame/item/quicksettingitem.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frame/item/quicksettingitem.cpp b/frame/item/quicksettingitem.cpp index d6d5710f6..941fdcbf3 100644 --- a/frame/item/quicksettingitem.cpp +++ b/frame/item/quicksettingitem.cpp @@ -131,6 +131,10 @@ QColor QuickSettingItem::foregroundColor() const void QuickSettingItem::onRequestAppletShow(PluginsItemInterface *itemInter, const QString &itemKey) { + // 只显示当前的插件的内容 + if (itemInter != m_pluginInter) + return; + // 显示弹出的内容 QWidget *itemApplet = itemInter->itemPopupApplet(itemKey); if (!itemApplet)