         
         switch action {
         case #selector(resetTextSize(_:)):
-            return (self.textView?.scale != 1.0)
+            return (self.textView.scale != 1.0)
             
         default:
             return true

        
        let scale = CGFloat(sliderItem.slider.doubleValue)
        
        self.textView?.setScaleKeepingVisibleArea(scale)
    }
    
    
    /// "Actaul Size" button was pressed
    @IBAction func resetTextSize(_ sender: Any?) {
        
        self.textView?.setScaleKeepingVisibleArea(1.0)
    }
    
    

            
        case .textSizeSlider:
            let item = NSSliderTouchBarItem(identifier: identifier)
            item.slider.doubleValue = Double(self.textView.scale)
            item.slider.maxValue = Double(self.textView.enclosingScrollView?.maxMagnification ?? 5.0)
            item.slider.minValue = Double(self.textView.enclosingScrollView?.minMagnification ?? 0.2)
            item.minimumValueAccessory = NSSliderAccessory(image: #imageLiteral(resourceName: "SmallTextSizeTemplate"))
            item.maximumValueAccessory = NSSliderAccessory(image: #imageLiteral(resourceName: "LargeTextSizeTemplate"))
            item.target = self
