remove unnecessary withWritableEntry
This commit is contained in:
@@ -114,6 +114,8 @@
|
|||||||
(lastCollector)))
|
(lastCollector)))
|
||||||
|
|
||||||
|
|
||||||
|
// TODO SelectedEntry and SelectedEntries functions should be stateful and use the actual
|
||||||
|
// selected entries automatically
|
||||||
(defMacro defCommand [name args &body body]
|
(defMacro defCommand [name args &body body]
|
||||||
(let [argPairs
|
(let [argPairs
|
||||||
(groups (expList args) 2)
|
(groups (expList args) 2)
|
||||||
|
@@ -5,8 +5,7 @@
|
|||||||
["jpg" "jpeg" "png"]
|
["jpg" "jpeg" "png"]
|
||||||
->[archive e imageFiles]
|
->[archive e imageFiles]
|
||||||
(unless (hasComponent e Images)
|
(unless (hasComponent e Images)
|
||||||
(withWritableEntry archive e
|
(addComponent archive e Images
|
||||||
(addComponent archive e Images
|
(object
|
||||||
(object
|
imageFiles imageFiles
|
||||||
imageFiles imageFiles
|
pinnedImageIndex 0)))))
|
||||||
pinnedImageIndex 0))))))
|
|
Reference in New Issue
Block a user