 				}
 				else {
 					NotificationCenter.default.post(name: .AccountRefreshDidFinish, object: self)
-					if dirty {
-						resetSaveTimer()
-					}
 				}
 			}
 		}

	let database: Database
	let delegate: AccountDelegate
	var username: String?
	var saveTimer: Timer?

	public var dirty = false {
		didSet {

			if refreshInProgress {
				if let _ = saveTimer {
					removeSaveTimer()
				}
				return
			}

			if dirty {
				resetSaveTimer()
			}
			else {
				removeSaveTimer()
			}
		}
	}

		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
