mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-06-08 10:32:26 -04:00
Correctly read Catalog URLs
This commit is contained in:
parent
56240d3227
commit
a4b96c6523
1 changed files with 3 additions and 2 deletions
|
@ -124,10 +124,11 @@ struct RefreshView: View {
|
||||||
|
|
||||||
private func retrieveInstallers() throws -> [Installer] {
|
private func retrieveInstallers() throws -> [Installer] {
|
||||||
var installers: [Installer] = []
|
var installers: [Installer] = []
|
||||||
|
let catalogs: [String] = UserDefaults.standard.array(forKey: "catalogURLs") as? [String] ?? Catalog.urls
|
||||||
|
|
||||||
for catalog in Catalog.allCases {
|
for catalog in catalogs {
|
||||||
|
|
||||||
guard let url: URL = URL(string: catalog.url) else {
|
guard let url: URL = URL(string: catalog) else {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue