Browse Source

【综合】BOTA 双击快照按钮,面板未收回(已修复)

tangchao 1 year ago
parent
commit
3f7119ec80

+ 7 - 0
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/KMLeftSideViewController.swift

@@ -330,6 +330,13 @@ class KMLeftSideViewController: KMSideViewController {
                     self.displayNoteViewAnimating(false)
                 }
             } else if (segIndex == 3) {
+                if self.type.methodType == .snapshot {
+                    self.leftView.segmentedControl.selectedSegment = UInt8.max
+                    self.refreshMethodType(methodType: .None)
+                    return
+                }
+                
+                self.refreshMethodType(methodType: .snapshot)
                 self.toolButtonBox.contentView = self.snapshotNormalView
                 self.updateSnapshotFilterPredicate()
                 self.displaySnapshotViewAnimating(false)

+ 4 - 0
PDF Office/PDF Master/Class/PDFWindowController/ViewController/KMMainViewController+Action.swift

@@ -2317,12 +2317,16 @@ extension KMMainViewController {
     @objc func openLeftPane() -> Void {
         leftPanelOpen = true
         applyLeftSideWidth(panelWidth+functionWidth, rightSideWidth: lastRightPanWidth)
+        
+        self.toolbarController.findItem(KMLeftControlToolbarItemIdentifier)?.isSelected = true
     }
     
     // 关闭左边栏
     @objc func closeLeftPane() -> Void {
         leftPanelOpen = false
         applyLeftSideWidth(functionWidth, rightSideWidth: lastRightPanWidth)
+        
+        self.toolbarController.findItem(KMLeftControlToolbarItemIdentifier)?.isSelected = false
     }
     
     // 开启/关闭右边栏

+ 24 - 8
PDF Office/PDF Reader Pro.xcodeproj/xcuserdata/kdanmobile.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -558,13 +558,13 @@
             filePath = "PDF Master/Class/PDFWindowController/Side/LeftSide/KMLeftSideViewController.swift"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "1101"
-            endingLineNumber = "1101"
+            startingLineNumber = "1108"
+            endingLineNumber = "1108"
             landmarkName = "_themeChanged(_:)"
             landmarkType = "7">
             <Locations>
                <Location
-                  uuid = "877893A4-191F-4DC0-B4BA-6AD764BA2605 - 3e436c85ec6693d0"
+                  uuid = "877893A4-191F-4DC0-B4BA-6AD764BA2605 - 3e436c85ec6692fb"
                   shouldBeEnabled = "Yes"
                   ignoreCount = "0"
                   continueAfterRunningActions = "No"
@@ -574,12 +574,12 @@
                   urlString = "file:///Users/kdanmobile/work/tangchao/git/PDFOffice/PDF%20Office/PDF%20Master/Class/PDFWindowController/Side/LeftSide/KMLeftSideViewController.swift"
                   startingColumnNumber = "9223372036854775807"
                   endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "1101"
-                  endingLineNumber = "1101"
+                  startingLineNumber = "1108"
+                  endingLineNumber = "1108"
                   offsetFromSymbolStart = "277">
                </Location>
                <Location
-                  uuid = "877893A4-191F-4DC0-B4BA-6AD764BA2605 - b06821624ed6e2ad"
+                  uuid = "877893A4-191F-4DC0-B4BA-6AD764BA2605 - b06821624ed6e3c4"
                   shouldBeEnabled = "Yes"
                   ignoreCount = "0"
                   continueAfterRunningActions = "No"
@@ -589,8 +589,8 @@
                   urlString = "file:///Users/kdanmobile/work/tangchao/git/PDFOffice/PDF%20Office/PDF%20Master/Class/PDFWindowController/Side/LeftSide/KMLeftSideViewController.swift"
                   startingColumnNumber = "9223372036854775807"
                   endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "1102"
-                  endingLineNumber = "1102"
+                  startingLineNumber = "1109"
+                  endingLineNumber = "1109"
                   offsetFromSymbolStart = "22">
                </Location>
             </Locations>
@@ -644,5 +644,21 @@
             </Locations>
          </BreakpointContent>
       </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            uuid = "DBCBBBFF-C66E-4A6B-9E6C-ED9E07D6C9CF"
+            shouldBeEnabled = "Yes"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "PDF Master/Class/Home/ViewController/KMHomeViewController+Action.swift"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "396"
+            endingLineNumber = "396"
+            landmarkName = "openFile(withFilePath:)"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
    </Breakpoints>
 </Bucket>