mirror of https://github.com/buresdv/Cork
^ Various errors ^ Cached downloads not showing
This commit is contained in:
parent
d249c869dc
commit
a7d77c59c8
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct PresentingSearchResultsView: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -108,6 +108,10 @@ struct StartPage: View
|
|||
}
|
||||
}
|
||||
}
|
||||
.onAppear
|
||||
{
|
||||
AppConstants.logger.debug("Cached downloads path: \(AppConstants.brewCachedDownloadsPath)")
|
||||
}
|
||||
.task(priority: .background)
|
||||
{
|
||||
if outdatedPackageTracker.outdatedPackages.isEmpty
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue