Remove debugging UI

This commit is contained in:
Joscha 2020-02-09 22:34:21 +00:00
parent e0e23367c8
commit 62874a6d3f

View file

@ -131,10 +131,9 @@ onKeyWithEditor ed cs ev = do
{- Constructing the client app -}
clientDraw :: ClientState -> [Widget ResourceName]
clientDraw cs = [joinBorders $ withBorderStyle unicode $ tree <+> debug]
clientDraw cs = [padTop (Pad 1) $ padLeft (Pad 2) tree]
where
tree = borderWithLabel (txt "Tree") $ renderTree boxDrawingBranching (csEditor cs) (csTree cs)
debug = borderWithLabel (txt "Debug") $ maybe (txt "No editor") (vBox . map txt . getCurrentText) (csEditor cs)
tree = renderTree boxDrawingBranching (csEditor cs) (csTree cs)
clientHandleEvent :: ClientState -> BrickEvent ResourceName () -> EventM ResourceName (Next ClientState)
clientHandleEvent cs (VtyEvent ev) = case csEditor cs of