|
@@ -18,9 +18,10 @@ typealias KMHomeContentViewQucikToolsRemoveAction = (_ view: KMHomeContentView,
|
|
|
|
|
|
|
|
|
let kRecentlyListModel = "kRecentlyListModel"
|
|
|
+let kQucikToolsViewShow = "kQucikToolsViewShow"
|
|
|
|
|
|
-enum KMHomeQucikToolsShowType {
|
|
|
- case expand
|
|
|
+enum KMHomeQucikToolsShowType: Int {
|
|
|
+ case expand = 0
|
|
|
case collapse
|
|
|
}
|
|
|
|
|
@@ -124,6 +125,9 @@ class KMHomeContentView: KMBaseXibView {
|
|
|
let type = UserDefaults.standard.object(forKey: kRecentlyListModel) ?? 0
|
|
|
historyListView.showType = KMHomeHistoryListViewShowType.init(rawValue: type as! Int) ?? .horizontal
|
|
|
|
|
|
+ let type2 = UserDefaults.standard.object(forKey: kQucikToolsViewShow) ?? 0
|
|
|
+ self.qucikToolsType = KMHomeQucikToolsShowType.init(rawValue: type2 as! Int) ?? .expand
|
|
|
+
|
|
|
self.updatePageLabel()
|
|
|
self.updateRecentlyListState()
|
|
|
}
|
|
@@ -220,6 +224,8 @@ extension KMHomeContentView {
|
|
|
self.qucikToolsView.reloadData()
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ UserDefaults.standard.setValue(qucikToolsType.rawValue, forKey: kQucikToolsViewShow)
|
|
|
}
|
|
|
}
|
|
|
}
|