getButtons boardStatusRV = do
--addRestartButton
restartM <- stockLookupItem gtkMediaRestart
- when (isJust restartM) $ do
+ when (isJust restartM) $
stockAddItem [(fromJust restartM) { siLabel = "_Restart" }]
buttonBox <- vBoxNew False 5
reactiveValueWrite playStockId gtkMediaPlay
reactiveValueOnCanRead boardStatusRV $ reactiveValueRead boardStatusRV >>=
\case
- Stopped -> reactiveValueWrite playStockId $ gtkMediaPlay
- Running -> reactiveValueWrite playStockId $ gtkMediaRestart
+ Stopped -> reactiveValueWrite playStockId gtkMediaPlay
+ Running -> reactiveValueWrite playStockId gtkMediaRestart
boxPackStart buttonBoxBot buttonPlay PackRepel 0
buttonPause <- toggleButtonNewFromStock gtkMediaPause
ers'' = ers' `lMerge` (r `tag` Running)
ophs <- iPre iphs -< phs
let ophs' = if keepHeads dlc then ophs else []
- e <- notYet -< fmap (\rs -> (rs, slc', ophs' ++ startHeads b)) (ers'')
+ e <- notYet -< fmap (\rs -> (rs, slc', ophs' ++ startHeads b)) ers''
returnA -< (enphs,e)
layers :: M.IntMap a