 		catch let error as NSError {
 			NSApplication.shared.presentError(error)
 		}
+		dirty = false
 	}
 }
 

		}
	}

	@objc func displayNameDidChange(_ note: Notification) {

		if let feed = note.object as? Feed, let feedAccount = feed.account, feedAccount === self {
			dirty = true
		}
		if let folder = note.object as? Folder, let folderAccount = folder.account, folderAccount === self {
			dirty = true
		}
	}

	@objc func saveToDiskIfNeeded() {

		guard dirty else {
			return
		}
		saveToDisk()
		dirty = false
	}

	// MARK: - Equatable

        NotificationCenter.default.addObserver(self, selector: #selector(batchUpdateDidPerform(_:)), name: .BatchUpdateDidPerform, object: nil)
		NotificationCenter.default.addObserver(self, selector: #selector(feedSettingDidChange(_:)), name: .FeedSettingDidChange, object: nil)
		NotificationCenter.default.addObserver(self, selector: #selector(displayNameDidChange(_:)), name: .DisplayNameDidChange, object: nil)
		NotificationCenter.default.addObserver(self, selector: #selector(childrenDidChange(_:)), name: .ChildrenDidChange, object: nil)

		pullObjectsFromDisk()
		
