fix(thumbnail):任务栏上已打开软件的右键菜单会自动关闭(#I987X1,同主线201908)

This commit is contained in:
buxiaoqing 2024-03-14 10:10:21 +08:00
parent 3a3f70f27c
commit 4358525645
2 changed files with 2 additions and 0 deletions

View File

@ -469,6 +469,7 @@ void UKUITaskButton::leaveEvent(QEvent *e)
void UKUITaskButton::contextMenuEvent(QContextMenuEvent *e)
{
emit leaveButton(m_windowId.toList(), "", 0, 0);
QMenu *rightMenu = new QMenu(this);
rightMenu->setAttribute(Qt::WA_DeleteOnClose);

View File

@ -76,6 +76,7 @@ void WindowThumbnailManager::hide(QString groupName)
Q_UNUSED(groupName);
if (!m_view->geometry().contains(QCursor::pos())) {
m_view->setViewVisible(false);
m_view->close();
}
}