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