From fabe093b1d62719b01d55b2e605e7a55ffec6ff8 Mon Sep 17 00:00:00 2001 From: ny Date: Tue, 17 Feb 2026 12:44:25 -0500 Subject: [PATCH] fix: remove pointless error toasts --- AltStore/LaunchViewController.swift | 6 ++---- AltStore/Settings/SettingsViewController.swift | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/AltStore/LaunchViewController.swift b/AltStore/LaunchViewController.swift index ef250d19..1eb63be8 100644 --- a/AltStore/LaunchViewController.swift +++ b/AltStore/LaunchViewController.swift @@ -140,12 +140,10 @@ final class LaunchViewController: UIViewController, UIDocumentPickerDelegate { _ = file.startAccessingSecurityScopedResource() defer { file.stopAccessingSecurityScopedResource() } guard let accountD = try? Data(contentsOf: file) else { - let toastView = ToastView(text: NSLocalizedString("Could not read data from file!", comment: ""), detailText: "\(file)") - return toastView.show(in: self) + return Logger.main.notice("Could not parse data from file \(file)") } guard let account = try? Foundation.JSONDecoder().decode(ImportedAccount.self, from: accountD) else { - let toastView = ToastView(text: NSLocalizedString("Could not parse data from file!", comment: ""), detailText: "\(file)") - return toastView.show(in: self) + return Logger.main.notice("Could not parse data from file \(file)") } print("We want to import this account probably: \(account)") if remove { diff --git a/AltStore/Settings/SettingsViewController.swift b/AltStore/Settings/SettingsViewController.swift index f90aebc6..c27b06a9 100644 --- a/AltStore/Settings/SettingsViewController.swift +++ b/AltStore/Settings/SettingsViewController.swift @@ -267,12 +267,10 @@ final class SettingsViewController: UITableViewController _ = file.startAccessingSecurityScopedResource() defer { file.stopAccessingSecurityScopedResource() } guard let accountD = try? Data(contentsOf: file) else { - let toastView = ToastView(text: NSLocalizedString("Could not read data from file!", comment: ""), detailText: "\(file)") - return toastView.show(in: self) + return Logger.main.notice("Could not parse data from file \(file)") } guard let account = try? Foundation.JSONDecoder().decode(ImportedAccount.self, from: accountD) else { - let toastView = ToastView(text: NSLocalizedString("Could not parse data from file!", comment: ""), detailText: "\(file)") - return toastView.show(in: self) + return Logger.main.notice("Could not parse data from file \(file)") } print("We want to import this account probably: \(account)") if remove {