Browse Source

【fix】【阅读模式】开启阅读模式,关闭文档重新打开,默认进入阅读模式,不需要展开左侧边栏

tangchao 5 months ago
parent
commit
c5e639e87d

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

@@ -594,6 +594,11 @@ import Cocoa
         if self.model.leftPanelOpen {
             return
         }
+        let readModel = UserDefaults.standard.bool(forKey: "kKMPDFViewIsReadMode")
+        if readModel == true {
+            return
+        }
+        
         DispatchQueue.main.async {
             self.leftSideViewController.showThumbnail()
             self.toolbarController.findItem(KMLeftControlToolbarItemIdentifier)?.isSelected = true

+ 12 - 10
PDF Office/PDF Master/Info.plist

@@ -331,16 +331,8 @@
 		<key>NSAllowsArbitraryLoads</key>
 		<true/>
 	</dict>
-	<key>SUFeedURL</key>
-	<string></string>
-	<key>UIAppFonts</key>
-	<array>
-		<string>SF-Pro-Text-Regular.otf</string>
-		<string>SF-Pro-Text-Semibold.otf</string>
-		<string>SF-Pro-Text-Bold.otf</string>
-		<string>Ubuntu-Bold.ttf</string>
-		<string>Ubuntu-Medium.ttf</string>
-	</array>
+	<key>NSAppleScriptEnabled</key>
+	<true/>
 	<key>NSServices</key>
 	<array>
 		<dict>
@@ -456,5 +448,15 @@
 			</array>
 		</dict>
 	</array>
+	<key>SUFeedURL</key>
+	<string></string>
+	<key>UIAppFonts</key>
+	<array>
+		<string>SF-Pro-Text-Regular.otf</string>
+		<string>SF-Pro-Text-Semibold.otf</string>
+		<string>SF-Pro-Text-Bold.otf</string>
+		<string>Ubuntu-Bold.ttf</string>
+		<string>Ubuntu-Medium.ttf</string>
+	</array>
 </dict>
 </plist>