Bugfix use a singleton ServerProfileManager

This commit is contained in:
C.S
2016-06-18 13:38:58 +08:00
parent 78bb0b7d32
commit 94e065ea63
4 changed files with 9 additions and 8 deletions

View File

@ -10,10 +10,12 @@ import Cocoa
class ServerProfileManager: NSObject {
static let instance:ServerProfileManager = ServerProfileManager()
var profiles:[ServerProfile]
var activeProfileId: String?
override init() {
private override init() {
profiles = [ServerProfile]()
let defaults = NSUserDefaults.standardUserDefaults()