diff --git a/TidalSwift.xcodeproj/project.pbxproj b/TidalSwift.xcodeproj/project.pbxproj index aa17069..198315a 100644 --- a/TidalSwift.xcodeproj/project.pbxproj +++ b/TidalSwift.xcodeproj/project.pbxproj @@ -1022,7 +1022,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 23; + CURRENT_PROJECT_VERSION = 24; DEVELOPMENT_ASSET_PATHS = "TidalSwift/Preview\\ Content"; DEVELOPMENT_TEAM = V7E5P7292M; ENABLE_HARDENED_RUNTIME = YES; @@ -1052,7 +1052,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 23; + CURRENT_PROJECT_VERSION = 24; DEVELOPMENT_ASSET_PATHS = "TidalSwift/Preview\\ Content"; DEVELOPMENT_TEAM = V7E5P7292M; ENABLE_HARDENED_RUNTIME = YES; diff --git a/TidalSwift/AppDelegate.swift b/TidalSwift/AppDelegate.swift index 8e398fe..afa8630 100644 --- a/TidalSwift/AppDelegate.swift +++ b/TidalSwift/AppDelegate.swift @@ -65,6 +65,7 @@ class AppDelegate: NSObject, NSApplicationDelegate { var offlineTrackSortingCancellable: AnyCancellable? var offlineTrackReversedCancellable: AnyCancellable? + // MARK: - Functions override init() { let session = Session(config: nil) @@ -368,6 +369,8 @@ class AppDelegate: NSObject, NSApplicationDelegate { } func saveState() { + sc.session.saveConfig() + sc.session.saveSession() savePlaybackState() saveViewState() saveViewCache() @@ -538,7 +541,7 @@ class AppDelegate: NSObject, NSApplicationDelegate { NSApp.terminate(nil) } - // MARK: File + // MARK: - File @IBAction func downloadTrack(_ sender: Any) { print("Menu: downloadTrack") diff --git a/TidalSwiftLib/Logic.swift b/TidalSwiftLib/Logic.swift index 2ec0082..da1548d 100644 --- a/TidalSwiftLib/Logic.swift +++ b/TidalSwiftLib/Logic.swift @@ -152,7 +152,7 @@ public class Session { let imageSizeString = persistentInformation["imageSize"], let imageSize = Int(imageSizeString) else { - displayError(title: "Couldn't load Config", content: "Missing part of Persistent Config") + displayError(title: "Couldn't load Config", content: "Missing part of Persistent Config.") return nil }