fix: 修复任务栏无法打开控制中心对应模块的问题

控制中心的接口名称从ShowModule换成ShowPage

Log:
Influence: 任务栏所有需要打开控制中心的地方
Task: https://pms.uniontech.com/task-view-110311.html
Change-Id: I20b133c55896d6afbf712f767a6688976f080cf0
This commit is contained in:
donghualin 2022-06-14 12:57:16 +00:00
parent 2055820d30
commit 0340166430
7 changed files with 9 additions and 8 deletions

3
debian/control vendored
View File

@ -38,7 +38,8 @@ Depends: ${shlibs:Depends}, ${misc:Depends},
dde-daemon (>=5.13.12),
startdde (>=5.8.9),
lastore-daemon (>=5.2.9),
qtxdg-dev-tools
qtxdg-dev-tools,
dbus-bin
Recommends:
dde-disk-mount-plugin,
dde-dock-onboard-plugin,

View File

@ -116,7 +116,7 @@ void BrightnessMonitorWidget::initConnection()
DDBusSender().service("com.deepin.dde.ControlCenter")
.path("/com/deepin/dde/ControlCenter")
.interface("com.deepin.dde.ControlCenter")
.method("ShowModule").arg(QString("display")).call();
.method("ShowPage").arg(QString("display")).call();
hide();
}
});

View File

@ -164,7 +164,7 @@ void VolumeDevicesWidget::initConnection()
DDBusSender().service("com.deepin.dde.ControlCenter")
.path("/com/deepin/dde/ControlCenter")
.interface("com.deepin.dde.ControlCenter")
.method("ShowModule").arg(QString("sound")).call();
.method("ShowPage").arg(QString("sound")).call();
hide();
}
});

View File

@ -280,7 +280,7 @@ void BluetoothApplet::initConnect()
.service("com.deepin.dde.ControlCenter")
.interface("com.deepin.dde.ControlCenter")
.path("/com/deepin/dde/ControlCenter")
.method(QString("ShowModule"))
.method(QString("ShowPage"))
.arg(QString("bluetooth"))
.call();
});

View File

@ -194,7 +194,7 @@ void DatetimePlugin::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("datetime"))
.call();
} else {

View File

@ -113,7 +113,7 @@ bool PowerPlugin::pluginIsDisable()
const QString PowerPlugin::itemCommand(const QString &itemKey)
{
if (itemKey == POWER_KEY)
return QString("dbus-send --print-reply --dest=com.deepin.dde.ControlCenter /com/deepin/dde/ControlCenter com.deepin.dde.ControlCenter.ShowModule \"string:power\"");
return QString("dbus-send --print-reply --dest=com.deepin.dde.ControlCenter /com/deepin/dde/ControlCenter com.deepin.dde.ControlCenter.ShowPage \"string:power\"");
return QString();
}
@ -153,7 +153,7 @@ void PowerPlugin::invokedMenuItem(const QString &itemKey, const QString &menuId,
.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();
}

View File

@ -132,7 +132,7 @@ void SoundItem::invokeMenuItem(const QString menuId, const bool checked)
.service("com.deepin.dde.ControlCenter")
.interface("com.deepin.dde.ControlCenter")
.path("/com/deepin/dde/ControlCenter")
.method(QString("ShowModule"))
.method(QString("ShowPage"))
.arg(QString("sound"))
.call();
}