|
@@ -52,6 +52,11 @@ class AIHeaderView: NSView, NibLoadable {
|
|
|
|
|
|
//MARK: IBAction
|
|
|
@IBAction func creditInfoAction(_ sender: NSButton) {
|
|
|
+ if AccountManager.manager.hasAiPermissions {
|
|
|
+ let winC = AccountCenterWindowController()
|
|
|
+ self.km_beginSheet(windowC: winC)
|
|
|
+ return
|
|
|
+ }
|
|
|
if AccountManager.manager.isLogin == false {
|
|
|
let winC = AccountCenterWindowController()
|
|
|
self.km_beginSheet(windowC: winC)
|