From dd049266cec21c8a5ab6fa8c3a9a1ed4cc69caad Mon Sep 17 00:00:00 2001 From: Shawn Schantz Date: Mon, 24 Aug 2026 20:29:48 -0400 Subject: [PATCH] feat(mac): comment revision --- mac/Config/Config/DownloadCoordinator.swift | 2 +- .../Sources/KeymanSettings/SettingsContainer.swift | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/mac/Config/Config/DownloadCoordinator.swift b/mac/Config/Config/DownloadCoordinator.swift index 13b192fd69..8d54ad6062 100644 --- a/mac/Config/Config/DownloadCoordinator.swift +++ b/mac/Config/Config/DownloadCoordinator.swift @@ -83,7 +83,7 @@ public class DownloadCoordinator: NSObject, ObservableObject, WKNavigationDelega // if an installation is already in progress then stop another from starting if keymanSettings.isInstallationInProgress() { - print("download already in progress, download canceled") + print("installation already in progress, download canceled") self.loadPackageFailed = true self.loadFailureMessage = InstallPackageError.packageInstallationAlreadyInProgress.localizedDescription decisionHandler(.cancel) diff --git a/mac/KeymanSettings/Sources/KeymanSettings/SettingsContainer.swift b/mac/KeymanSettings/Sources/KeymanSettings/SettingsContainer.swift index 3088b4fbcc..7ed7ac5808 100644 --- a/mac/KeymanSettings/Sources/KeymanSettings/SettingsContainer.swift +++ b/mac/KeymanSettings/Sources/KeymanSettings/SettingsContainer.swift @@ -33,7 +33,7 @@ public enum InstallPackageError: LocalizedError { public var errorDescription: String? { switch self { - case .packageInstallationAlreadyInProgress: return "A package installatino is already in progress." + case .packageInstallationAlreadyInProgress: return "A package installation is already in progress." case .fontCopyError: return "There was an error copying the font." case .fontRegistrationError: return "There was an error registering the font." case .internalError: return "An internal error occurred." @@ -507,8 +507,7 @@ public class SettingsContainer : ObservableObject { } /** - * Creates a PackageInstallHelper instance to manage the state of the package being downloaded with the specified name. - * Returns a URL to the temporary location where the package is to be downloaded as a .kmp file. + * Creates a PackageInstallHelper instance to manage the state of the package being installed with the specified name. */ func preparePackageDrop(kmpFilename: String) -> PackageInstallHelper? { return PackageInstallHelper(filename: kmpFilename, packageRepo: self.packageRepository, installedPackages: self.installedPackages, isDownload: false)