mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
fix: the 3rd plugins can't show context menu (#450)
Tends to allow plugin popup menus. Log: fix the 3rd plugins can't show context menu
This commit is contained in:
parent
2049beae18
commit
6c82bec3e3
@ -156,7 +156,7 @@ void PluginsItem::mousePressEvent(QMouseEvent *e)
|
||||
|
||||
if (e->button() == Qt::RightButton) {
|
||||
if (perfectIconRect().contains(e->pos())) {
|
||||
return (m_gsettings && (!m_gsettings->keys().contains("menuEnable") || m_gsettings->get("menuEnable").toBool())) ? showContextMenu() : void();
|
||||
return (m_gsettings && m_gsettings->keys().contains("menuEnable") && !m_gsettings->get("menuEnable").toBool()) ? void() : showContextMenu();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user