Skip to content

Commit f3775c6

Browse files
deepin-ci-robotyixinshark
authored andcommitted
sync: from linuxdeepin/dde-session-shell
Synchronize source files from linuxdeepin/dde-session-shell. Source-pull-request: linuxdeepin/dde-session-shell#60
1 parent 45c10f7 commit f3775c6

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/dde-lock/updateworker.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
1+
// SPDX-FileCopyrightText: 2022 - 2026 UnionTech Software Technology Co., Ltd.
22
//
33
// SPDX-License-Identifier: GPL-3.0-or-later
44

@@ -32,9 +32,15 @@ void UpdateWorker::doUpdate(bool powerOff)
3232
.path("/org/freedesktop/Notifications")
3333
.interface("org.freedesktop.Notifications")
3434
.method(QString("Notify"))
35+
#ifndef ENABLE_DSS_SNIPE
3536
.arg(tr("Update"))
3637
.arg(static_cast<uint>(0))
3738
.arg(QString("package-updated-failed"))
39+
#else
40+
.arg(QString("org.deepin.dde.control-center"))
41+
.arg(static_cast<uint>(0))
42+
.arg(QString())
43+
#endif
3844
.arg(QString(""))
3945
.arg(tr("Please plug in and then install updates."))
4046
.arg(QStringList())

0 commit comments

Comments
 (0)