Sha256: 762d2ffebe657f28d2a01772df61d5b87a95381eaed56e4141619c2666e9418d
Contents?: true
Size: 703 Bytes
Versions: 4
Compression:
Stored size: 703 Bytes
Contents
module Redwood class LabelSearchResultsMode < ThreadIndexMode def initialize labels @labels = labels super end def is_relevant? m; @labels.all? { |l| m.has_label? l }; end def load_threads opts={} n = opts[:num] || ThreadIndexMode::LOAD_MORE_THREAD_NUM load_n_threads_background n, :labels => @labels, :load_killed => true, :load_spam => false, :when_done =>(lambda do |num| opts[:when_done].call if opts[:when_done] if num > 0 BufferManager.flash "Found #{num} threads" else BufferManager.flash "No matches" end end) end end end
Version data entries
4 entries across 4 versions & 1 rubygems