|
@@ -78,9 +78,8 @@ class KMAddBackgroundView: KMBaseXibView, NSComboBoxDelegate {
|
|
|
self.reloadData()
|
|
|
}
|
|
|
}
|
|
|
- var backgroundType: KMBackgroundType!
|
|
|
-
|
|
|
-
|
|
|
+ var backgroundType: KMBackgroundType = .color
|
|
|
+
|
|
|
var initialID: String!
|
|
|
var currentType: Int = 0
|
|
|
|
|
@@ -88,7 +87,7 @@ class KMAddBackgroundView: KMBaseXibView, NSComboBoxDelegate {
|
|
|
var batchAction: KMAddBackgroundViewCancelAction?
|
|
|
var operateCallBack: KMAddBackgroundViewOperateCallBack?
|
|
|
|
|
|
- var onlyManagerTemplate: Bool = false
|
|
|
+ var onlyManagerTemplate: Bool = true
|
|
|
|
|
|
// MARK: - Dealloc
|
|
|
|
|
@@ -195,17 +194,15 @@ class KMAddBackgroundView: KMBaseXibView, NSComboBoxDelegate {
|
|
|
|
|
|
appearanceBox.titleFont = NSFont.systemFont(ofSize: 13)
|
|
|
|
|
|
- if !onlyManagerTemplate {
|
|
|
- saveToTemplateButton.isEnabled = false
|
|
|
- }
|
|
|
+ saveToTemplateButton.isEnabled = onlyManagerTemplate
|
|
|
|
|
|
- if type == .use {
|
|
|
- saveToTemplateButton.isHidden = true
|
|
|
- saveToTemplateButton.state = .off
|
|
|
- } else {
|
|
|
- saveToTemplateButton.isHidden = false
|
|
|
- saveToTemplateButton.state = .on
|
|
|
- }
|
|
|
+// if type == .use {
|
|
|
+// saveToTemplateButton.isHidden = true
|
|
|
+// saveToTemplateButton.state = .off
|
|
|
+// } else {
|
|
|
+// saveToTemplateButton.isHidden = false
|
|
|
+// saveToTemplateButton.state = .on
|
|
|
+// }
|
|
|
|
|
|
pageRangeComboBox.removeAllItems()
|
|
|
pageRangeComboBox.addItems(withObjectValues: [
|