diff --git a/Mythic/Views/Unified/Sheets/InstallGameView.swift b/Mythic/Views/Unified/Sheets/InstallGameView.swift index f79e3c17..71c3dcd7 100644 --- a/Mythic/Views/Unified/Sheets/InstallGameView.swift +++ b/Mythic/Views/Unified/Sheets/InstallGameView.swift @@ -37,7 +37,7 @@ struct InstallViewEvo: View { if output.stdout.contains("Installation requirements check returned the following results:") { if let match = try? Regex(#"Failure: (.*)"#).firstMatch(in: output.stdout) { - Legendary.stopCommand(identifier: "install") + Legendary.stopCommand(identifier: "parseOptionalPacks") installationError = Legendary.InstallationError(errorDescription: .init(match.last?.substring ?? "Unknown Error")) isInstallationErrorPresented = true return @@ -76,6 +76,9 @@ struct InstallViewEvo: View { } ) } + .onDisappear { + Legendary.stopCommand(identifier: "parseOptionalPacks") + } if operation.current != nil { Text("Cannot fetch selected downloads while other items are downloading.")