|
@@ -63,11 +63,11 @@ private var passwordInputWindow: KMPasswordInputWindow?
|
|
|
|
|
|
let titleLabel = self.myTitleLabel
|
|
|
if (titleLabel != nil) {
|
|
|
- if (newValue == .open) {
|
|
|
- titleLabel!.stringValue = NSLocalizedString("Open Password", comment: "")
|
|
|
- } else {
|
|
|
+// if (newValue == .open) {
|
|
|
+// titleLabel!.stringValue = NSLocalizedString("Open Password", comment: "")
|
|
|
+// } else {
|
|
|
titleLabel!.stringValue = NSLocalizedString("Permission Password", comment: "")
|
|
|
- }
|
|
|
+// }
|
|
|
}
|
|
|
|
|
|
var despLabel = self.myDespLabel
|
|
@@ -83,13 +83,13 @@ private var passwordInputWindow: KMPasswordInputWindow?
|
|
|
let ps = NSMutableParagraphStyle()
|
|
|
ps.lineSpacing = 5
|
|
|
// ps.lineBreakMode = .byTruncatingTail
|
|
|
- if (newValue == .open) {
|
|
|
- despLabel!.stringValue = "\"\(fileName)\"\(NSLocalizedString("is protected, please enter a Document Open Password.", comment: ""))"
|
|
|
- despLabel!.attributedStringValue = NSAttributedString(string: despLabel!.stringValue, attributes: [.foregroundColor : NSColor.titleColor(), .font : NSFont.SFProTextRegular(14), .paragraphStyle : ps])
|
|
|
- } else {
|
|
|
+// if (newValue == .open) {
|
|
|
+// despLabel!.stringValue = "\"\(fileName)\"\(NSLocalizedString("is protected, please enter a Document Open Password.", comment: ""))"
|
|
|
+// despLabel!.attributedStringValue = NSAttributedString(string: despLabel!.stringValue, attributes: [.foregroundColor : NSColor.titleColor(), .font : NSFont.SFProTextRegular(14), .paragraphStyle : ps])
|
|
|
+// } else {
|
|
|
despLabel!.stringValue = "\"\(fileName)\"\(NSLocalizedString("is protected, please enter the password to unlock it.", comment: ""))"
|
|
|
despLabel!.attributedStringValue = NSAttributedString(string: despLabel!.stringValue, attributes: [.foregroundColor : NSColor.titleColor(), .font : NSFont.SFProTextRegular(14), .paragraphStyle : ps])
|
|
|
- }
|
|
|
+// }
|
|
|
}
|
|
|
}
|
|
|
}
|