mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Updates SourceError.blocked recovery suggestion to list installed/blocked apps
If source is already added, the error message will list all installed apps from the source. If adding source for first time, the error message will mention exactly which apps have been blocked from the source (if provided).
This commit is contained in:
@@ -293,7 +293,7 @@ private extension SourcesViewController
|
||||
let predicate = NSPredicate(format: "%K == %@", #keyPath(Source.identifier), $source.identifier)
|
||||
if let existingSource = Source.first(satisfying: predicate, in: backgroundContext)
|
||||
{
|
||||
throw SourceError.duplicate(source, previousSourceName: existingSource.name)
|
||||
throw SourceError.duplicate(source, existingSource: existingSource)
|
||||
}
|
||||
|
||||
DispatchQueue.main.async {
|
||||
|
||||
Reference in New Issue
Block a user