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:
Cloud 2022-06-17 14:05:17 +08:00 committed by GitHub
parent 2049beae18
commit 6c82bec3e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}
}