Skip to content

Commit

Permalink
Fix up to date message getting filtered out when no other updates fro…
Browse files Browse the repository at this point in the history
…m source
  • Loading branch information
DeDiamondPro committed Dec 10, 2024
1 parent b7025e9 commit 2b1c30f
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,11 @@ class UpdateGui(val type: ProjectType, private val folder: File) : PaginatedScre
for (service in ServiceRegistry.getAllServices()) {
val future = service.getUpdates(files, type).thenApply { updates ->
val ids = updates.values.filterNotNull().map { it.getProjectId() }
if (ids.isEmpty()) {
return@thenApply emptyMap()
val projects = if (ids.isEmpty()) {
emptyMap()
} else {
service.getProjectsFromIds(ids)
}
val projects = service.getProjectsFromIds(ids)
// Add project into map
return@thenApply updates.filter { it.value == null || projects.containsKey(it.value!!.getProjectId()) }
.map {
Expand Down

0 comments on commit 2b1c30f

Please sign in to comment.