mTaskManager :: Task ()
mTaskManager = anyTask
[ viewmTasks @! ()
- , whileUnchanged sdsStore viewShares
+ , whileUnchanged sdsStore manageShares
, whileUnchanged deviceStore $ manageDevices process
] <<@ ApplyLayout (sequenceLayouts
[ arrangeWithSideBar 0 LeftSide 260 True
[] = viewInformation "No devices yet" [] ()
ds = fromJust ('DM'.get mTaskTask allmTasks)
>>= \bc->(enterChoice "Choose Device" [ChooseFromDropdown \t->t.deviceName] ds
- -&&- enterInformation "Timeout, 0 for one-shot" []
+ -&&- enterInformation "Timeout" []
) >>* [OnAction (Action "Send") (withValue $ Just o sendToDevice mTaskTask bc)]
+ @! ()
)
process :: MTaskDevice (Shared Channels) -> Task ()