Skip to content

Commit c9cd540

Browse files
committed
Merge branch 'develop'
2 parents 9373ca8 + b549c5a commit c9cd540

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

uPic/PreferencesWindow/ConfigView/ConfigView.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,17 @@ class ConfigView: NSView {
131131
}
132132

133133
@objc func saveHostSettings(notification: Notification) {
134-
self.removeObserver()
135134
guard let userInfo = notification.userInfo else {
136135
print("No userInfo found in notification")
137136
return
138137
}
139138

140139
let domain = userInfo["domain"] as? String ?? ""
140+
let folder = userInfo["folder"] as? String ?? ""
141141
let saveKey = userInfo["saveKey"] as? String ?? HostSaveKey.dateFilename.rawValue
142142

143143
self.data?.setValue(domain, forKey: "domain")
144+
self.data?.setValue(folder, forKey: "folder")
144145
self.data?.setValue(saveKey, forKey: "saveKey")
145146

146147
domainField?.stringValue = domain

uPic/PreferencesWindow/ConfigView/Views/CustomConfigView.swift

+16
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,22 @@ class CustomConfigView: ConfigView {
188188

189189
}
190190

191+
@objc override func saveHostSettings(notification: Notification) {
192+
self.removeObserver()
193+
guard let userInfo = notification.userInfo else {
194+
print("No userInfo found in notification")
195+
return
196+
}
197+
198+
let domain = userInfo["domain"] as? String ?? ""
199+
let saveKey = userInfo["saveKey"] as? String ?? HostSaveKey.dateFilename.rawValue
200+
201+
self.data?.setValue(domain, forKey: "domain")
202+
self.data?.setValue(saveKey, forKey: "saveKey")
203+
204+
domainField?.stringValue = domain
205+
}
206+
191207
@objc func openCustomConfigSheet(_ sender: NSButton) {
192208
guard let data = self.data as? CustomHostConfig else {
193209
return

uPic/Supporting Files/Info.plist

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
<key>CFBundlePackageType</key>
2020
<string>APPL</string>
2121
<key>CFBundleShortVersionString</key>
22-
<string>0.7.3</string>
22+
<string>0.7.4</string>
2323
<key>CFBundleVersion</key>
24-
<string>20190720</string>
24+
<string>20190721</string>
2525
<key>LSApplicationCategoryType</key>
2626
<string>public.app-category.utilities</string>
2727
<key>LSMinimumSystemVersion</key>

0 commit comments

Comments
 (0)