If synching, save note file first and set all to isDirty = false