mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-08 07:09:28 +03:00
ui: reg: ensure T always has a visible effect
This commit is contained in:
parent
1c3233cc0f
commit
52ee10bd87
@ -188,7 +188,7 @@ rsDraw UIState{aopts=uopts@UIOpts{cliopts_=copts@CliOpts{reportopts_=ropts}}
|
||||
|
||||
where
|
||||
ishistorical = balancetype_ ropts == HistoricalBalance
|
||||
inclusive = tree_ ropts || rsForceInclusive
|
||||
-- inclusive = tree_ ropts || rsForceInclusive
|
||||
|
||||
toplabel =
|
||||
withAttr ("border" <> "bold") (str $ T.unpack $ replaceHiddenAccountsNameWith "All" rsAccount)
|
||||
@ -236,7 +236,8 @@ rsDraw UIState{aopts=uopts@UIOpts{cliopts_=copts@CliOpts{reportopts_=ropts}}
|
||||
then selectedstr "historical" <+> str "/period"
|
||||
else str "historical/" <+> selectedstr "period")
|
||||
,("T"
|
||||
,if inclusive
|
||||
-- rsForceInclusive may override, but use tree_ here to ensure a visible toggle effect
|
||||
,if tree_ ropts
|
||||
then str "flat/" <+> selectedstr "tree"
|
||||
else selectedstr "flat" <+> str "/tree")
|
||||
,("F"
|
||||
|
Loading…
Reference in New Issue
Block a user