|
@@ -731,8 +731,15 @@ extension KMMainViewController {
|
|
|
readAlertView?.removeFromSuperview()
|
|
|
}
|
|
|
readAlertView = CustomAlertView.alertView(message: NSLocalizedString("Read Mode On", comment: ""), fromView: self.view, withStyle: .blue, backgroundColor: NSColor.km_init(hex: "#36383B"))
|
|
|
- self.updateAITipViewShowState()
|
|
|
+
|
|
|
+ if self.aiTipView != nil {
|
|
|
+ self.updateAITipViewShowState()
|
|
|
+ }
|
|
|
// self.aiTipView.isHidden = true
|
|
|
+
|
|
|
+ UserDefaults.standard.set(isReadMode, forKey: "kKMPDFViewIsReadMode")
|
|
|
+ UserDefaults.standard.synchronize()
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@objc func closeReadModel() {
|
|
@@ -787,6 +794,9 @@ extension KMMainViewController {
|
|
|
}
|
|
|
readAlertView = CustomAlertView.alertView(message: NSLocalizedString("Read Mode Off", comment: ""), fromView: self.view, withStyle: .blue, backgroundColor: NSColor.km_init(hex: "#36383B"))
|
|
|
self.updateAITipViewShowState()
|
|
|
+
|
|
|
+ UserDefaults.standard.set(isReadMode, forKey: "kKMPDFViewIsReadMode")
|
|
|
+ UserDefaults.standard.synchronize()
|
|
|
}
|
|
|
|
|
|
@objc func addOutLineItemAction() {
|