فهرست منبع

【BOTA】- 打开上一次的BOTA位置方法修改

liaoxiaoyue 1 سال پیش
والد
کامیت
b74b567510

+ 1 - 1
PDF Office/PDF Office/Class/PDFWindowController/Side/LeftSide/KMLeftSideViewController.swift

@@ -97,7 +97,7 @@ class KMLeftSideViewController: NSViewController, KMThumbnailViewControllerDeleg
         let newType = KMLeftMethodMode()
         var show = true
         if self.type.methodType != methodType {
-            newType.methodType = .Annotation
+            newType.methodType = methodType
         }
         if self.type.methodType == methodType {
             show = false

+ 2 - 2
PDF Office/PDF Office/Class/PDFWindowController/ViewController/KMMainViewController.swift

@@ -213,8 +213,8 @@ import Cocoa
             } else if selectedIndex == 4 {
                 thumai.methodType = .Search
             }
-            var show = true
-            self.leftSideViewController.refreshMethodType(newType: thumai, show:show)
+          
+            self.leftSideViewController.refreshMethodType(methodType: thumai.methodType)
         }
     }