Fix activeProfileId not sync change with subscribe

This commit is contained in:
秦宇航
2017-07-22 12:53:58 +08:00
parent 5366345b79
commit b143d78ef0
5 changed files with 28 additions and 16 deletions
@@ -260,7 +260,7 @@ class PreferencesWindowController: NSWindowController
func getDataAtRow(_ index:Int) -> (String, Bool) {
let profile = profileMgr.profiles[index]
let isActive = (profileMgr.activeProfileId == profile.uuid)
let isActive = (profileMgr.getActiveProfileId() == profile.uuid)
if !profile.remark.isEmpty {
return (profile.remark, isActive)
} else {