Open element options when shape is selected.

This commit is contained in:
Andrey Antukh 2016-08-31 17:22:52 +03:00
parent 6f92604d87
commit 20e89cb8a7
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -341,10 +341,11 @@
(reify (reify
rs/UpdateEvent rs/UpdateEvent
(-apply-update [_ state] (-apply-update [_ state]
(let [selected (get-in state [:workspace :selected])] (let [selected (get-in state [:workspace :selected])
(if (contains? selected id) state (if (contains? selected id)
(update-in state [:workspace :selected] disj id) (update-in state [:workspace :selected] disj id)
(update-in state [:workspace :selected] conj id)))))) (update-in state [:workspace :selected] conj id))]
(update-in state [:workspace :flags] conj :element-options)))))
;; --- Select Shapes ;; --- Select Shapes