mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-11 15:53:30 +01:00
Improves ALTServerError.maximumFreeAppLimitReached error message
AltServer once again displays the list of installed sideloaded apps in error alert.
This commit is contained in:
@@ -279,6 +279,13 @@ private extension AppDelegate
|
||||
|
||||
var messageComponents = [String]()
|
||||
|
||||
let separator: String
|
||||
switch error
|
||||
{
|
||||
case ALTServerError.maximumFreeAppLimitReached: separator = "\n\n"
|
||||
default: separator = " "
|
||||
}
|
||||
|
||||
if let errorFailure = nsError.localizedFailure
|
||||
{
|
||||
if let failureReason = nsError.localizedFailureReason
|
||||
@@ -322,7 +329,7 @@ private extension AppDelegate
|
||||
messageComponents.append(recoverySuggestion)
|
||||
}
|
||||
|
||||
let informativeText = messageComponents.joined(separator: " ")
|
||||
let informativeText = messageComponents.joined(separator: separator)
|
||||
alert.informativeText = informativeText
|
||||
|
||||
NSRunningApplication.current.activate(options: .activateIgnoringOtherApps)
|
||||
|
||||
Reference in New Issue
Block a user