From 0c10c2186d7a7a892108345abab8b48b873268bc Mon Sep 17 00:00:00 2001 From: songwentao Date: Mon, 6 Dec 2021 14:28:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E4=BB=BB=E6=84=8F=E9=A2=84=E8=A7=88=E7=AA=97=E5=8F=A3=E9=80=80?= =?UTF-8?q?=E5=87=BA=E9=A2=84=E8=A7=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 鼠标焦点离开预览窗口或者关闭最后一个窗口时退出预览,其他情形不退出预览 Log: 优化任务栏关闭预览窗口时人机交互逻辑 Influence: 任务栏-某一个应用打开多个窗口时,鼠标焦点离开预览窗口或者关闭最后一个预览窗口时退出预览,其他情形不退出预览 Bug: https://pms.uniontech.com/zentao/bug-view-82890.html Change-Id: I5889b2a1aeb493c764910a5a1f5877fd6b85720b --- frame/item/components/previewcontainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frame/item/components/previewcontainer.cpp b/frame/item/components/previewcontainer.cpp index d5047bad1..21089643c 100644 --- a/frame/item/components/previewcontainer.cpp +++ b/frame/item/components/previewcontainer.cpp @@ -329,7 +329,7 @@ void PreviewContainer::onRequestCloseAppSnapshot() if (!m_wmHelper->hasComposite()) return ; - if (m_currentWId != m_snapshots.lastKey()) { + if (m_snapshots.keys().isEmpty()) { Q_EMIT requestHidePopup(); Q_EMIT requestCancelPreviewWindow(); }