diff --git a/uPic/PreferencesWindow/ConfigView/ConfigView.swift b/uPic/PreferencesWindow/ConfigView/ConfigView.swift index 3034c24c..f6db062d 100644 --- a/uPic/PreferencesWindow/ConfigView/ConfigView.swift +++ b/uPic/PreferencesWindow/ConfigView/ConfigView.swift @@ -131,16 +131,17 @@ class ConfigView: NSView { } @objc func saveHostSettings(notification: Notification) { - self.removeObserver() guard let userInfo = notification.userInfo else { print("No userInfo found in notification") return } let domain = userInfo["domain"] as? String ?? "" + let folder = userInfo["folder"] as? String ?? "" let saveKey = userInfo["saveKey"] as? String ?? HostSaveKey.dateFilename.rawValue self.data?.setValue(domain, forKey: "domain") + self.data?.setValue(folder, forKey: "folder") self.data?.setValue(saveKey, forKey: "saveKey") domainField?.stringValue = domain diff --git a/uPic/PreferencesWindow/ConfigView/Views/CustomConfigView.swift b/uPic/PreferencesWindow/ConfigView/Views/CustomConfigView.swift index f5badafc..4c6778b6 100644 --- a/uPic/PreferencesWindow/ConfigView/Views/CustomConfigView.swift +++ b/uPic/PreferencesWindow/ConfigView/Views/CustomConfigView.swift @@ -188,6 +188,22 @@ class CustomConfigView: ConfigView { } + @objc override func saveHostSettings(notification: Notification) { + self.removeObserver() + guard let userInfo = notification.userInfo else { + print("No userInfo found in notification") + return + } + + let domain = userInfo["domain"] as? String ?? "" + let saveKey = userInfo["saveKey"] as? String ?? HostSaveKey.dateFilename.rawValue + + self.data?.setValue(domain, forKey: "domain") + self.data?.setValue(saveKey, forKey: "saveKey") + + domainField?.stringValue = domain + } + @objc func openCustomConfigSheet(_ sender: NSButton) { guard let data = self.data as? CustomHostConfig else { return diff --git a/uPic/Supporting Files/Info.plist b/uPic/Supporting Files/Info.plist index 2b2a79ec..228fe946 100644 --- a/uPic/Supporting Files/Info.plist +++ b/uPic/Supporting Files/Info.plist @@ -19,9 +19,9 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.7.3 + 0.7.4 CFBundleVersion - 20190720 + 20190721 LSApplicationCategoryType public.app-category.utilities LSMinimumSystemVersion