🐛 Fix paste properties on readonly state (#5736)

This commit is contained in:
Alonso Torres 2025-01-31 11:47:28 +01:00 committed by GitHub
parent c3df84d812
commit 0483d1fd93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1650,7 +1650,8 @@
[]
(ptk/reify ::paste-selected-props
ptk/WatchEvent
(watch [_ _ _]
(watch [_ state _]
(when-not (-> state :workspace-global :read-only?)
(letfn [(decode-entry [entry]
(-> entry t/decode-str paste-transit-props))
@ -1664,7 +1665,7 @@
(->> (wapi/read-from-clipboard)
(rx/map decode-entry)
(rx/take 1)
(rx/catch on-error))))))
(rx/catch on-error)))))))
(defn selected-frame? [state]
(let [selected (dsh/lookup-selected state)