^ Various errors ^ Cached downloads not showing

This commit is contained in:
David Bureš 2024-09-01 14:01:26 +02:00
parent d249c869dc
commit a7d77c59c8
4 changed files with 7 additions and 2 deletions

View File

@ -6,6 +6,7 @@
//
import SwiftUI
import CorkShared
struct PresentingSearchResultsView: View
{

View File

@ -108,6 +108,10 @@ struct StartPage: View
}
}
}
.onAppear
{
AppConstants.logger.debug("Cached downloads path: \(AppConstants.brewCachedDownloadsPath)")
}
.task(priority: .background)
{
if outdatedPackageTracker.outdatedPackages.isEmpty

View File

@ -10,7 +10,7 @@ import SwiftUI
import UserNotifications
import CorkShared
func sendNotification(title: String, body: String? = nil, subtitle: String? = nil, sensitivity: UNNotificationInterruptionLevel = .timeSensitive)
public func sendNotification(title: String, body: String? = nil, subtitle: String? = nil, sensitivity: UNNotificationInterruptionLevel = .timeSensitive)
{
// Get whether we can send notifications
let notificationsAreEnabled: Bool = UserDefaults.standard.bool(forKey: "areNotificationsEnabled")

View File

@ -105,7 +105,7 @@ public struct AppConstants
// MARK: - Brew Cache
public static let brewCachePath: URL = URL.libraryDirectory.appending(component: "Caches", directoryHint: .isDirectory).appending(component: "Homerbew", directoryHint: .isDirectory) // /Users/david/Library/Caches/Homebrew
public static let brewCachePath: URL = URL.libraryDirectory.appending(component: "Caches", directoryHint: .isDirectory).appending(component: "Homebrew", directoryHint: .isDirectory) // /Users/david/Library/Caches/Homebrew
/// These two have the symlinks to the actual downloads
public static let brewCachedFormulaeDownloadsPath: URL = brewCachePath