 
     //MARK:- Notifications
     @objc func willUpdateAlpha() {
-        let alpha = settings.opacityPercentage.value
-        didUpdateAlpha(CGFloat(alpha))
+        didUpdateAlpha(settings.opacityPercentage.value)
+        cacheSettings()
     }
     @objc func willUpdateTranslucency() {
         translucencyPreference = settings.translucencyPreference.value
         updateTranslucency()
+        cacheSettings()
     }
     
     func windowDidResize(_ notification: Notification) {

        }
    }
    
    func didUpdateAlpha(_ newAlpha: CGFloat) {
        alpha = newAlpha / 100
    }
}

        } else {
            panel.collectionBehavior = [.canJoinAllSpaces, .fullScreenAuxiliary]
        }
        cacheSettings()
    }
    
    @objc fileprivate func doPlaylistItem(_ notification: Notification) {
