speed up json import

speed up json config file import, you should see it happend
This commit is contained in:
qinyuhang
2017-01-08 23:10:31 +08:00
parent daa4ef64f6
commit 615b80c7fc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -48,7 +48,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<string>2</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
+1 -1
View File
@@ -113,8 +113,8 @@ class ServerProfileManager: NSObject {
}
self.profiles.append(profile)
self.save()
NotificationCenter.default.post(name: Notification.Name(rawValue: NOTIFY_SERVER_PROFILES_CHANGED), object: nil)
}
NotificationCenter.default.post(name: Notification.Name(rawValue: NOTIFY_SERVER_PROFILES_CHANGED), object: nil)
let configsCount = (jsonArr1.object(forKey: "configs") as! [[String: AnyObject]]).count
let notification = NSUserNotification()
notification.title = "Import Server Profile succeed!".localized