From 9b3347b677f924a8238881447b45744078e4d9af Mon Sep 17 00:00:00 2001 From: deepin-ci-robot Date: Thu, 12 Mar 2026 08:32:30 +0000 Subject: [PATCH] sync: from linuxdeepin/dde-session-shell Synchronize source files from linuxdeepin/dde-session-shell. Source-pull-request: https://github.com/linuxdeepin/dde-session-shell/pull/60 --- src/dde-lock/updateworker.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/dde-lock/updateworker.cpp b/src/dde-lock/updateworker.cpp index 536be5c8d..bf2c6d3df 100644 --- a/src/dde-lock/updateworker.cpp +++ b/src/dde-lock/updateworker.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. +// SPDX-FileCopyrightText: 2022 - 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -32,9 +32,15 @@ void UpdateWorker::doUpdate(bool powerOff) .path("/org/freedesktop/Notifications") .interface("org.freedesktop.Notifications") .method(QString("Notify")) +#ifndef ENABLE_DSS_SNIPE .arg(tr("Update")) .arg(static_cast(0)) .arg(QString("package-updated-failed")) +#else + .arg(QString("org.deepin.dde.control-center")) + .arg(static_cast(0)) + .arg(QString()) +#endif .arg(QString("")) .arg(tr("Please plug in and then install updates.")) .arg(QStringList())