Skip to content

Commit

Permalink
fix: uncaught error when loading non-existent manager icons
Browse files Browse the repository at this point in the history
  • Loading branch information
khcrysalis committed Aug 5, 2024
1 parent 27918a9 commit a20ae67
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions palera1nLoader/View/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,15 @@ extension ViewController {
}
return image
}

if (iconImages == nil) {
DispatchQueue.main.async {
self.isLoading = false
self.isError = true
self.tableView.reloadSections(IndexSet(integer: 0), with: .automatic)
}
break
}

self.iconImages = iconImages!

Expand Down

0 comments on commit a20ae67

Please sign in to comment.