mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[options] compact option-setter in generator
slightly more compact, avoids confusing structure whereby 'option' is both the lambda's argument and the definition of argument.
This commit is contained in:
parent
6dd04cfa58
commit
6e246ef8ad
@ -202,11 +202,9 @@ the option '~a'."))
|
||||
|
||||
|
||||
(define (gnc:restore-form-generator value->string)
|
||||
(lambda () (string-append
|
||||
"(lambda (option) "
|
||||
"(if option ((gnc:option-setter option) "
|
||||
(value->string)
|
||||
")))")))
|
||||
(lambda ()
|
||||
(string-append "(lambda (o) (if o (gnc:option-set-value o "
|
||||
(value->string) ")))")))
|
||||
|
||||
(define (gnc:value->string value)
|
||||
(format #f "~s" value))
|
||||
|
Loading…
Reference in New Issue
Block a user