mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +00:00
fix: 修复任务栏无法打开控制中心对应模块的问题
控制中心的接口名称从ShowModule换成ShowPage Log: Influence: 任务栏所有需要打开控制中心的地方 Task: https://pms.uniontech.com/task-view-110311.html Change-Id: I20b133c55896d6afbf712f767a6688976f080cf0
This commit is contained in:
parent
2055820d30
commit
0340166430
3
debian/control
vendored
3
debian/control
vendored
@ -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,
|
||||
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
@ -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();
|
||||
});
|
||||
|
@ -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 {
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user