Skip to content

Commit e2607f2

Browse files
committed
Fixed home screen not detecting updates when they are in fact available.
1 parent ece739b commit e2607f2

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

InfiniLink/View Components/Home View/HomeScreen.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,9 @@ struct HomeScreen: View {
106106
Text("")
107107
}
108108
}
109-
.onChange(of: downloadManager.downloading) { _ in
110-
if !downloadManager.downloading {
111-
if downloadManager.updateAvailable {
112-
self.updateAvailable = true
113-
}
109+
.onChange(of: downloadManager.updateAvailable) { _ in
110+
if downloadManager.updateAvailable {
111+
self.updateAvailable = true
114112
}
115113
}
116114
}

0 commit comments

Comments
 (0)