|
@@ -93,7 +93,15 @@ class KMLeftSideViewController: NSViewController, KMThumbnailViewControllerDeleg
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- func refreshMethodType(newType:KMLeftMethodMode,show:Bool) {
|
|
|
+ func refreshMethodType(methodType:BotaType) {
|
|
|
+ let newType = KMLeftMethodMode()
|
|
|
+ var show = true
|
|
|
+ if self.type.methodType != methodType {
|
|
|
+ newType.methodType = .Annotation
|
|
|
+ }
|
|
|
+ if self.type.methodType == methodType {
|
|
|
+ show = false
|
|
|
+ }
|
|
|
self.type = newType;
|
|
|
self.refreshShowMethod()
|
|
|
self.delegate?.controlStateChange?(self,show:show)
|