From 3514838d6a27084336566da765a807ad2a518470 Mon Sep 17 00:00:00 2001 From: xml Date: Fri, 23 Jan 2026 11:26:35 +0800 Subject: [PATCH] feat: add update source success process event Task: https://pms.uniontech.com/task-view-385363.html --- src/internal/updateplatform/message_report.go | 3 +++ src/lastore-daemon/manager_update.go | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/internal/updateplatform/message_report.go b/src/internal/updateplatform/message_report.go index 4b1a5ce5a..e0cb72435 100644 --- a/src/internal/updateplatform/message_report.go +++ b/src/internal/updateplatform/message_report.go @@ -1398,6 +1398,9 @@ func (m *UpdatePlatformManager) UpdateAllPlatformDataSync() error { } func (m *UpdatePlatformManager) PostProcessEventMessage(body ProcessEvent) { + if !system.IsPrivateLastore { + return + } logger.Debug("post process event msg:", body) body.TaskID = m.taskID if (m.config.PlatformDisabled & DisabledProcess) != 0 { diff --git a/src/lastore-daemon/manager_update.go b/src/lastore-daemon/manager_update.go index ae7e167fe..3d52362d3 100644 --- a/src/lastore-daemon/manager_update.go +++ b/src/lastore-daemon/manager_update.go @@ -203,10 +203,18 @@ func (m *Manager) updateSource(sender dbus.Sender) (*Job, error) { go func() { m.inhibitAutoQuitCountAdd() defer m.inhibitAutoQuitCountSub() + msgContent := "update source success" m.updatePlatform.PostStatusMessage(updateplatform.StatusMessage{ Type: "info", - Detail: "update source success", + Detail: msgContent, }, false) + + m.updatePlatform.PostProcessEventMessage(updateplatform.ProcessEvent{ + TaskID: 1, + EventType: updateplatform.GetUpdateEvent, + EventStatus: true, + EventContent: msgContent, + }) }() m.updatePlatform.SaveCache(m.config) job.setPropProgress(1.0)