File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
@@ -784,6 +784,16 @@ func (m *Manager) refreshUpdateInfos(sync bool) {
784784 }
785785}
786786
787+ func (m * Manager ) shouldNotifyScheduledUpdate () bool {
788+ if m == nil || m .updater == nil || m .updatePlatform == nil {
789+ return false
790+ }
791+ if m .updatePlatform .UpdateNowForce || m .updatePlatform .UpdateTime .IsZero () {
792+ return false
793+ }
794+ return len (m .updater .UpdatablePackages ) > 0
795+ }
796+
787797func (m * Manager ) updateUpdatableProp (infosMap map [string ][]string ) {
788798 m .PropsMu .RLock ()
789799 updateType := m .UpdateMode
You can’t perform that action at this time.
0 commit comments