|
@@ -286,16 +286,16 @@ let LOCKED_KEY = "locked"
|
|
|
// 更新属性页面的信息
|
|
|
NotificationCenter.default.post(name: KMInfoWindowC.windowDidBecomeMainNotification, object: self.myDocument)
|
|
|
|
|
|
+ if (self.document == nil) {
|
|
|
+ return
|
|
|
+ }
|
|
|
|
|
|
- if (self.document!.isLocked == false) {
|
|
|
+ if (self.document?.isLocked == false) {
|
|
|
self.loadFunctionGuide()
|
|
|
self.loadAIIconView()
|
|
|
}
|
|
|
|
|
|
- if (self.document == nil) {
|
|
|
- return
|
|
|
- }
|
|
|
- if (self.document!.isLocked == false) {
|
|
|
+ if (self.document?.isLocked == false) {
|
|
|
return
|
|
|
}
|
|
|
if (self.view.window == nil) {
|