Skip to content

Commit

Permalink
[dashboard] enable Dashboard report properly
Browse files Browse the repository at this point in the history
8adac3c didn't enable dashboard report because of trailing "" in menu
path. proper fix.
  • Loading branch information
christopherlam committed May 23, 2020
1 parent d8aecf9 commit 3036b72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gnucash/gnome/report-menus.scm
Expand Up @@ -116,6 +116,6 @@
(N_ "Dashboard")
"ad80271c890b11dfa79f2dcedfd72085"
(N_ "A basic dashboard for your accounting data")
(list gnc:menuname-reports gnc:menuname-multicolumn "")
(list gnc:menuname-reports gnc:menuname-multicolumn)
(lambda (window)
(gnc-main-window-open-report (gnc:make-dashboard) window)))))
3 changes: 1 addition & 2 deletions gnucash/report/reports/standard/dashboard.scm
Expand Up @@ -43,13 +43,12 @@
(sub-expense-pie (gnc:make-report exp-piechart-guid))
(sub-income-pie (gnc:make-report inc-piechart-guid))
(sub-bar (gnc:make-report inc-exp-chart-guid))
(options #f))
(options (gnc:report-options (gnc-report-find view))))

(define (set-option! section name value)
(gnc:option-set-value
(gnc:lookup-option options section name) value))

(set! options (gnc:report-options (gnc-report-find view)))
(set-option! "General" "Report name" (_ "Dashboard"))
(set-option! "General" "Number of columns" 2)

Expand Down

0 comments on commit 3036b72

Please sign in to comment.