Fix little bug in regex filters.

This commit is contained in:
Robert C. Martin 2023-05-30 12:54:38 -05:00
parent 2a335bf667
commit 12f861d64e
3 changed files with 4 additions and 5 deletions

View File

@ -47,7 +47,7 @@
node (.getComponent e)
id (config node :user-data)
hex-id (util/hexify id)
note-id (bech32/encode "note" id)
note-id (str "nostr:" (bech32/encode "note" id))
p (popup :items [(action :name (str "Copy " (subs hex-id 0 10) "...")
:handler (partial copy-to-clipboard hex-id))
(action :name (str "Copy " (subs note-id 0 10) "...")

View File

@ -134,8 +134,8 @@
ptags (filter #(= :p (first %)) tags)
ptags (filter valid-ptag? ptags)
pubkey-citings (map #(util/hex-string->num (second %)) ptags)
content (:content event)
subject (ffirst (events/get-tag event :subject))]
content (or (:content event) "")
subject (or (ffirst (events/get-tag event :subject)) "")]
(and
(or
(empty? (:selected filters))

View File

@ -99,8 +99,7 @@
(update-mem [:tabs-window tab-name :selected] conj regex)
(config! (get-mem [:tabs-window tab-name :selected-listbox])
:model (get-mem [:tabs-window tab-name :selected]))
(swing-util/add-filter-to-tab tab-name :selected regex)
(prn 'regex-field-key 'add-regex tab-name regex)))
(swing-util/add-filter-to-tab tab-name :selected regex)))
)
(defn- make-regex-area [tab-desc]