         }
     }
    
-    @objc fileprivate func didUpdateTitle(_ notification: Notification) {
-        panel.title = settings.windowTitle.value
-    }
-    
     fileprivate func didRequestFile() {
         
         let open = NSOpenPanel()

    func windowShouldClose(_ sender: Any) -> Bool {
        let webView = self.window?.contentView?.subviews.first as! MyWebView
        let delegate = webView.navigationDelegate as! NSObject

        // Wind down all observations
        webView.removeObserver(delegate, forKeyPath: "estimatedProgress")

    
    //MARK:- IBActions
    
    fileprivate var doc: Document? {
        get {
            return self.document as? Document
        }
    }
    fileprivate var settings: Settings {
        get {
            return doc!.settings
        }
    }
    @IBAction func autoHideTitlePress(_ sender: NSMenuItem) {
        settings.autoHideTitle.value = (sender.state == NSOffState)
        willUpdateTitleBar()
    }
    @IBAction func floatOverFullScreenAppsPress(_ sender: NSMenuItem) {
        settings.disabledFullScreenFloat.value = (sender.state == NSOnState)
        setFloatOverFullScreenApps()
    }
    @IBAction func openLocationPress(_ sender: AnyObject) {
        didRequestLocation()
