mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
c++options: Create bool or string internal options when possible.
There's no need to save internal options as SCM when we support the underlying type in C++.
This commit is contained in:
parent
e9b850cca5
commit
6cd88c230c
@ -280,7 +280,13 @@
|
||||
(let ((type (GncOptionUIType-INTERNAL))
|
||||
(key "_")
|
||||
(desc "internal"))
|
||||
(gnc-make-SCM-option section name key desc default type)))
|
||||
(cond
|
||||
((boolean? default) (gnc-make-bool-option section name key desc default
|
||||
(GncOptionUIType-INTERNAL)))
|
||||
((string? default) (gnc-make-string-option section name key desc default
|
||||
(GncOptionUIType-INTERNAL)))
|
||||
(else
|
||||
(gnc-make-SCM-option section name key desc default type)))))
|
||||
(define-public (gnc:make-owner-option section name key docstring getter validator owner-type)
|
||||
(issue-deprecation-warning "gnc:make-owner-option is deprecated. Make and register the option in one command with gnc-register-owner-option.")
|
||||
(let* ((ui-type (cond
|
||||
|
Loading…
Reference in New Issue
Block a user