gnucash master: [dashboard] enable Dashboard report properly

Christopher Lam clam at code.gnucash.org
Sat May 23 05:30:27 EDT 2020


Updated	 via  https://github.com/Gnucash/gnucash/commit/3036b726 (commit)
	from  https://github.com/Gnucash/gnucash/commit/d8aecf96 (commit)



commit 3036b72657aeeae85e32c86bfb30e31c14192797
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat May 23 15:23:26 2020 +0800

    [dashboard] enable Dashboard report properly
    
    8adac3c3 didn't enable dashboard report because of trailing "" in menu
    path. proper fix.

diff --git a/gnucash/gnome/report-menus.scm b/gnucash/gnome/report-menus.scm
index 7ebbe000e..7fb920417 100644
--- a/gnucash/gnome/report-menus.scm
+++ b/gnucash/gnome/report-menus.scm
@@ -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)))))
diff --git a/gnucash/report/reports/standard/dashboard.scm b/gnucash/report/reports/standard/dashboard.scm
index 8c1b84ff6..175e6fce4 100644
--- a/gnucash/report/reports/standard/dashboard.scm
+++ b/gnucash/report/reports/standard/dashboard.scm
@@ -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)
 



Summary of changes:
 gnucash/gnome/report-menus.scm                | 2 +-
 gnucash/report/reports/standard/dashboard.scm | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)



More information about the gnucash-changes mailing list