Tomboy.NoteRecentChanges.FilterByTag C# (CSharp) Method

FilterByTag() private method

Return true if the specified note should be shown in the list based on the current selection of tags. If no tags are selected, all notes should be allowed.
private FilterByTag ( Note note ) : bool
note Note
return bool
		bool FilterByTag (Note note)
		{
			if (selected_tags.Count == 0)
				return true;

			// FIXME: Ugh!  NOT an O(1) operation.  Is there a better way?
			foreach (Tag tag in note.Tags) {
				if (selected_tags.ContainsKey (tag))
					return true;
			}

			return false;
		}