|
@@ -339,6 +339,7 @@ class KMBatchOperateConvertViewController: KMBatchOperateBaseViewController,NSCo
|
|
|
NotificationCenter.default.addObserver(self, selector: #selector(IAPProductRestoreFinishedNotification(notification:)), name: NSNotification.Name("KMIAPProductRestoreFinishedNotification"), object: nil)
|
|
|
// NotificationCenter.default.addObserver(self, selector: #selector(themeChanged(notification:)), name: NSNotification.Name("AppleInterfaceThemeChangedNotification"), object: nil)
|
|
|
DistributedNotificationCenter.default().addObserver(self, selector: #selector(themeChanged(notification:)), name: NSNotification.Name("AppleInterfaceThemeChangedNotification"), object: nil)
|
|
|
+ NotificationCenter.default.addObserver(self, selector: #selector(deviceActivateStatusChanged(notification:)), name: NSNotification.Name("kDeviceActivateNotification"), object: nil)
|
|
|
}
|
|
|
|
|
|
|
|
@@ -374,6 +375,13 @@ class KMBatchOperateConvertViewController: KMBatchOperateBaseViewController,NSCo
|
|
|
self.collectionView.reloadData()
|
|
|
}
|
|
|
}
|
|
|
+ @objc func deviceActivateStatusChanged(notification: NSNotification) {
|
|
|
+ DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) {
|
|
|
+ self.updateBottomView()
|
|
|
+ self.prepareData()
|
|
|
+ self.collectionView.reloadData()
|
|
|
+ }
|
|
|
+ }
|
|
|
func updateViewColor() {
|
|
|
self.view.wantsLayer = true
|
|
|
if KMAppearance.isDarkMode() {
|