Skip to content

Commit c9e21e1

Browse files
committed
fix: check updatable packages before send notify
Bug: https://pms.uniontech.com/bug-view-356741.html
1 parent 4be05fb commit c9e21e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lastore-daemon/manager_update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ func (m *Manager) refreshUpdateInfos(sync bool) {
757757
}
758758
m.inhibitAutoQuitCountSub()
759759
}()
760-
if !m.updatePlatform.UpdateNowForce && !m.updatePlatform.UpdateTime.IsZero() {
760+
if !m.updatePlatform.UpdateNowForce && !m.updatePlatform.UpdateTime.IsZero() && len(m.updater.UpdatablePackages) > 0 {
761761
timeStr := m.updatePlatform.UpdateTime.Format(TimeOnly)
762762
if timeStr != m.updateTime {
763763
m.updateTime = timeStr

0 commit comments

Comments
 (0)