File tree 3 files changed +20
-3
lines changed
PreferencesWindow/ConfigView
3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -131,16 +131,17 @@ class ConfigView: NSView {
131
131
}
132
132
133
133
@objc func saveHostSettings( notification: Notification ) {
134
- self . removeObserver ( )
135
134
guard let userInfo = notification. userInfo else {
136
135
print ( " No userInfo found in notification " )
137
136
return
138
137
}
139
138
140
139
let domain = userInfo [ " domain " ] as? String ?? " "
140
+ let folder = userInfo [ " folder " ] as? String ?? " "
141
141
let saveKey = userInfo [ " saveKey " ] as? String ?? HostSaveKey . dateFilename. rawValue
142
142
143
143
self . data? . setValue ( domain, forKey: " domain " )
144
+ self . data? . setValue ( folder, forKey: " folder " )
144
145
self . data? . setValue ( saveKey, forKey: " saveKey " )
145
146
146
147
domainField? . stringValue = domain
Original file line number Diff line number Diff line change @@ -188,6 +188,22 @@ class CustomConfigView: ConfigView {
188
188
189
189
}
190
190
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
+
191
207
@objc func openCustomConfigSheet( _ sender: NSButton ) {
192
208
guard let data = self . data as? CustomHostConfig else {
193
209
return
Original file line number Diff line number Diff line change 19
19
<key >CFBundlePackageType </key >
20
20
<string >APPL </string >
21
21
<key >CFBundleShortVersionString </key >
22
- <string >0.7.3 </string >
22
+ <string >0.7.4 </string >
23
23
<key >CFBundleVersion </key >
24
- <string >20190720 </string >
24
+ <string >20190721 </string >
25
25
<key >LSApplicationCategoryType </key >
26
26
<string >public.app-category.utilities </string >
27
27
<key >LSMinimumSystemVersion </key >
You can’t perform that action at this time.
0 commit comments