X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=miTask.icl;h=2a80f5cc8492b51a36f716add3ab037b69f4bf7f;hb=684c702b39ebd339cb123a24f1f37a63d708e688;hp=558462cf35c56bfde36310ea49c9041502e1cefa;hpb=b845b58e2d90207476029812179f81968cd45108;p=mTask.git diff --git a/miTask.icl b/miTask.icl index 558462c..2a80f5c 100644 --- a/miTask.icl +++ b/miTask.icl @@ -30,7 +30,7 @@ Start world = startEngine [ publish "/" $ const demo ] world -demo = viewSharedInformation "Devices" [] deviceStore +demo = viewSharedInformation "Devices" [] deviceStoreNP >>* [OnValue $ ifValue pred (cont o hd)] where pred [] = False @@ -55,7 +55,7 @@ demo = viewSharedInformation "Devices" [] deviceStore mTaskManager :: Task () mTaskManager = (>>|) startupDevices $ viewmTasks ||- - ((manageShares ||- whileUnchanged deviceStore (manageDevices process)) + ((manageShares ||- whileUnchanged deviceStoreNP (manageDevices process)) <<@ ArrangeSplit Vertical True) <<@ ArrangeWithSideBar 0 LeftSide 260 True where @@ -63,7 +63,7 @@ mTaskManager = (>>|) startupDevices $ viewmTasks = enterChoiceWithShared "Available mTasks" [ChooseFromList id] mTaskTaskStore >&^ \sh->whileUnchanged sh $ \mi->forever (case mi of Nothing = viewInformation "No task selected" [] () - Just mTaskTask = get deviceStore + Just mTaskTask = get deviceStoreNP >>= \devices->case devices of [] = viewInformation "No devices yet" [] () ds = fromJust ('DM'.get mTaskTask allmTasks)