diff --git a/Aerial.xcodeproj/project.pbxproj b/Aerial.xcodeproj/project.pbxproj index 13c864b7..f30398f6 100644 --- a/Aerial.xcodeproj/project.pbxproj +++ b/Aerial.xcodeproj/project.pbxproj @@ -1169,7 +1169,7 @@ CODE_SIGN_IDENTITY = "Developer ID Application: Guillaume Louel (3L54M5L5KK)"; CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1.5.1beta4; + CURRENT_PROJECT_VERSION = 1.5.1beta5; DEFINES_MODULE = YES; DEVELOPMENT_TEAM = 3L54M5L5KK; ENABLE_HARDENED_RUNTIME = YES; @@ -1177,7 +1177,7 @@ INSTALL_PATH = "$(HOME)/Library/Screen Savers"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; MACOSX_DEPLOYMENT_TARGET = 10.9; - MARKETING_VERSION = 1.5.1beta4; + MARKETING_VERSION = 1.5.1beta5; PRODUCT_BUNDLE_IDENTIFIER = com.johncoates.Aerial; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -1198,7 +1198,7 @@ CODE_SIGN_IDENTITY = "Developer ID Application: Guillaume Louel (3L54M5L5KK)"; CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1.5.1beta4; + CURRENT_PROJECT_VERSION = 1.5.1beta5; DEFINES_MODULE = YES; DEVELOPMENT_TEAM = 3L54M5L5KK; ENABLE_HARDENED_RUNTIME = YES; @@ -1206,7 +1206,7 @@ INSTALL_PATH = "$(HOME)/Library/Screen Savers"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; MACOSX_DEPLOYMENT_TARGET = 10.9; - MARKETING_VERSION = 1.5.1beta4; + MARKETING_VERSION = 1.5.1beta5; OTHER_CODE_SIGN_FLAGS = "--timestamp"; PRODUCT_BUNDLE_IDENTIFIER = com.johncoates.Aerial; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/Aerial/Source/Controllers/PWC Tabs/PWC+Advanced.swift b/Aerial/Source/Controllers/PWC Tabs/PWC+Advanced.swift index c45163e8..5865325a 100644 --- a/Aerial/Source/Controllers/PWC Tabs/PWC+Advanced.swift +++ b/Aerial/Source/Controllers/PWC Tabs/PWC+Advanced.swift @@ -70,13 +70,13 @@ extension PreferencesWindowController { } @IBAction func showLogInFinder(_ button: NSButton!) { - let logfile = VideoCache.cacheDirectory!.appending("/AerialLog.txt") + let logfile = VideoCache.appSupportDirectory!.appending("/AerialLog.txt") // If we don't have a log, just show the folder if FileManager.default.fileExists(atPath: logfile) == false { - NSWorkspace.shared.selectFile(nil, inFileViewerRootedAtPath: VideoCache.cacheDirectory!) + NSWorkspace.shared.selectFile(nil, inFileViewerRootedAtPath: VideoCache.appSupportDirectory!) } else { - NSWorkspace.shared.selectFile(logfile, inFileViewerRootedAtPath: VideoCache.cacheDirectory!) + NSWorkspace.shared.selectFile(logfile, inFileViewerRootedAtPath: VideoCache.appSupportDirectory!) } } diff --git a/Aerial/Source/Controllers/PreferencesWindowController.swift b/Aerial/Source/Controllers/PreferencesWindowController.swift index 67603196..d3fe1b96 100644 --- a/Aerial/Source/Controllers/PreferencesWindowController.swift +++ b/Aerial/Source/Controllers/PreferencesWindowController.swift @@ -316,7 +316,7 @@ final class PreferencesWindowController: NSWindowController, NSOutlineViewDataSo setupVideosTab() setupDisplaysTab() setupTextTab() - //setupTimeTab() + setupTimeTab() setupBrightnessTab() setupCacheTab() setupUpdatesTab() @@ -339,13 +339,13 @@ final class PreferencesWindowController: NSWindowController, NSOutlineViewDataSo } // We also load our CustomVideos nib here - /*let bundle = Bundle(for: PreferencesWindowController.self) + let bundle = Bundle(for: PreferencesWindowController.self) var topLevelObjects: NSArray? = NSArray() if !bundle.loadNibNamed(NSNib.Name("CustomVideos"), owner: customVideosController, topLevelObjects: &topLevelObjects) { errorLog("Could not load nib for CustomVideos, please report") - }*/ + } } override func windowDidLoad() { diff --git a/Aerial/Source/Models/Cache/VideoCache.swift b/Aerial/Source/Models/Cache/VideoCache.swift index 3981b7b4..04e3eb57 100644 --- a/Aerial/Source/Models/Cache/VideoCache.swift +++ b/Aerial/Source/Models/Cache/VideoCache.swift @@ -136,9 +136,6 @@ final class VideoCache { // Cache the computed value computedCacheDirectory = cacheDirectory - // Save it - //preferences.customCacheDirectory = computedCacheDirectory - //preferences.synchronize() debugLog("cache to be used : \(String(describing: cacheDirectory))") return cacheDirectory } diff --git a/Aerial/Source/Models/ErrorLog.swift b/Aerial/Source/Models/ErrorLog.swift index 1bcebcfd..5f880764 100644 --- a/Aerial/Source/Models/ErrorLog.swift +++ b/Aerial/Source/Models/ErrorLog.swift @@ -76,7 +76,7 @@ func Log(level: ErrorLevel, message: String) { } let string = dateFormatter.string(from: Date()) + " : " + message + "\n" - if let cacheDirectory = VideoCache.cacheDirectory { + if let cacheDirectory = VideoCache.appSupportDirectory { var cacheFileUrl = URL(fileURLWithPath: cacheDirectory as String) cacheFileUrl.appendPathComponent("AerialLog.txt") let data = string.data(using: String.Encoding.utf8, allowLossyConversion: false)! @@ -126,7 +126,7 @@ func errorLog(_ message: String) { } func dataLog(_ data: Data) { - let cacheDirectory = VideoCache.cacheDirectory! + let cacheDirectory = VideoCache.appSupportDirectory! var cacheFileUrl = URL(fileURLWithPath: cacheDirectory as String) cacheFileUrl.appendPathComponent("AerialData.txt")