 	private let windowAutosaveName = NSWindow.FrameAutosaveName(rawValue: "MainWindow")
 	static var didPositionWindowOnFirstRun = false
 
-	private var currentFeedOrFolder: DisplayNameProvider? = nil {
+	private var currentFeedOrFolder: AnyObject? = nil {
 		didSet {
 			updateWindowTitle()
 		}


	private func updateWindowTitleIfNecessary(_ object: Any?) {
		
		if let folder = currentFeedOrFolder as? Folder, let countNote = object as? Folder {
			if folder == countNote {
				updateWindowTitle()
				return
			}
		}
		
		if let feed = currentFeedOrFolder as? Feed, let countNote = object as? Feed {
			if feed == countNote {
				updateWindowTitle()
			}
		}
		

			return
		}
		
		guard selectedObjects?[0] is DisplayNameProvider && selectedObjects?[0] is UnreadCountProvider else {
			currentFeedOrFolder = nil
			return
		}
		
		currentFeedOrFolder = selectedObjects?[0]
		
	}
	
