X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=miTask.icl;h=71b891165dbbb029ade74296b4b4750f3e7562ee;hb=a2b8b2a0de173f92092bf6cbbed23551e674ca3c;hp=09fb5dd53fd09348b1a8d72821ec79b36a9ba658;hpb=71787cb6678d7a0d2014d373af5e55447796f78d;p=mTask.git diff --git a/miTask.icl b/miTask.icl index 09fb5dd..71b8911 100644 --- a/miTask.icl +++ b/miTask.icl @@ -31,9 +31,9 @@ Start world = startEngine (mTaskManager >>* [OnAction (Action "Shutdown") (always $ shutDown)]) world mTaskManager :: Task () -mTaskManager = anyTask +mTaskManager = startupDevices >>| anyTask [ viewmTasks @! () - , whileUnchanged sdsStore viewShares + , whileUnchanged sdsStore manageShares , whileUnchanged deviceStore $ manageDevices process ] <<@ ApplyLayout (sequenceLayouts [ arrangeWithSideBar 0 LeftSide 260 True @@ -49,8 +49,9 @@ mTaskManager = anyTask [] = 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 ()