mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fix: 修复托盘图标右键菜单大概率不显示的问题
托盘图标显示时,有一个置顶的窗口未隐藏,导致菜单显示不出来 Log: 修复托盘图标右键菜单大概率不显示的问题 Bug: https://pms.uniontech.com/zentao/bug-view-37751.html Change-Id: Id00675736642ddfc770e474ca873b2d0a209ead9 Reviewed-on: http://gerrit.uniontech.com/c/dde-dock/+/596 Reviewed-by: fanpengcheng <fanpengcheng@uniontech.com> Tested-by: fanpengcheng <fanpengcheng@uniontech.com>
This commit is contained in:
parent
02d2445614
commit
87de6722e9
@ -346,6 +346,9 @@ void SNITrayWidget::refreshAttentionIcon()
|
||||
|
||||
void SNITrayWidget::showContextMenu(int x, int y)
|
||||
{
|
||||
// 这里的PopupWindow属性是置顶的,如果不隐藏,会导致菜单显示不出来
|
||||
hidePopup();
|
||||
|
||||
// ContextMenu does not work
|
||||
if (m_sniMenuPath.path().startsWith("/NO_DBUSMENU")) {
|
||||
m_sniInter->ContextMenu(x, y);
|
||||
@ -358,7 +361,6 @@ void SNITrayWidget::showContextMenu(int x, int y)
|
||||
if (m_menu)
|
||||
m_menu->popup(QPoint(x, y));
|
||||
}
|
||||
hidePopup();
|
||||
}
|
||||
|
||||
void SNITrayWidget::onSNIAttentionIconNameChanged(const QString &value)
|
||||
|
Loading…
x
Reference in New Issue
Block a user