small update
[mTask.git] / Shares / mTaskShare.icl
index f4b0721..ee6282b 100644 (file)
@@ -15,6 +15,7 @@ manageShares :: [MTaskShare] -> Task ()
 manageShares shares = withShared Nothing $ \cs->forever $
        (viewSharesGrid cs shares -|| updateShares shares <<@ ArrangeVertical) 
        @! ()
+
 updateShares :: [MTaskShare] -> Task BCValue
 updateShares shares = anyTask (map updateS shares) <<@ ArrangeWithTabs
 
@@ -23,7 +24,7 @@ updateS sh = flip (<<@) (Title $ toString sh.identifier) $ forever $
                viewSharedInformation "Current value" [] (getSDSShare sh)
        ||- (
                        updateSharedInformation "New value" [] (getSDSShare sh)
-               >>= \nv->allTasks (map getDevice sh.withDevice)
+               >>= \nv->allTasks (map (withDevice treturn) sh.withDevice)
                >>= \devs->allTasks (map (sendMessages [MTUpd sh.identifier nv]) devs)
                >>| treturn nv
                )