diff --git a/frame/window/systempluginwindow.cpp b/frame/window/systempluginwindow.cpp index e32ffaac6..fe50095e7 100644 --- a/frame/window/systempluginwindow.cpp +++ b/frame/window/systempluginwindow.cpp @@ -239,6 +239,11 @@ const QString StretchPluginsItem::contextMenu() const return m_pluginInter->itemContextMenu(m_itemKey); } +void StretchPluginsItem::invokedMenuItem(const QString &itemId, const bool checked) +{ + m_pluginInter->invokedMenuItem(m_itemKey, itemId, checked); +} + void StretchPluginsItem::mousePressEvent(QMouseEvent *e) { m_hover = false; diff --git a/frame/window/systempluginwindow.h b/frame/window/systempluginwindow.h index 2c7314337..15d814d36 100644 --- a/frame/window/systempluginwindow.h +++ b/frame/window/systempluginwindow.h @@ -80,6 +80,7 @@ protected: void mouseReleaseEvent(QMouseEvent *e) override; const QString contextMenu() const override; + void invokedMenuItem(const QString &itemId, const bool checked) override; private: void mouseClick(); diff --git a/plugins/shutdown/shutdownplugin.cpp b/plugins/shutdown/shutdownplugin.cpp index 9a6b75d9c..4a29c9fb5 100644 --- a/plugins/shutdown/shutdownplugin.cpp +++ b/plugins/shutdown/shutdownplugin.cpp @@ -237,7 +237,7 @@ void ShutdownPlugin::invokedMenuItem(const QString &itemKey, const QString &menu .service("com.deepin.dde.ControlCenter") .interface("com.deepin.dde.ControlCenter") .path("/com/deepin/dde/ControlCenter") - .method(QString("ShowModule")) + .method(QString("ShowPage")) .arg(QString("power")) .call(); } else if (menuId == "Lock") {