mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
ENH: disable filter accounts selector if filter-mode=none
This commit is contained in:
parent
8399ee65bd
commit
d9d4ffaff2
@ -370,13 +370,13 @@ tags within description, notes or memo. ")
|
|||||||
(gnc:register-trep-option
|
(gnc:register-trep-option
|
||||||
(gnc:make-account-list-option
|
(gnc:make-account-list-option
|
||||||
gnc:pagename-accounts optname-filterby
|
gnc:pagename-accounts optname-filterby
|
||||||
"b" (N_ "Filter on these accounts.")
|
"c1" (N_ "Filter on these accounts.")
|
||||||
(lambda ()
|
(lambda ()
|
||||||
'())
|
'())
|
||||||
#f #t))
|
#f #t))
|
||||||
|
|
||||||
(gnc:register-trep-option
|
(gnc:register-trep-option
|
||||||
(gnc:make-multichoice-option
|
(gnc:make-multichoice-callback-option
|
||||||
gnc:pagename-accounts optname-filtertype
|
gnc:pagename-accounts optname-filtertype
|
||||||
"c" (N_ "Filter account.")
|
"c" (N_ "Filter account.")
|
||||||
'none
|
'none
|
||||||
@ -388,7 +388,12 @@ tags within description, notes or memo. ")
|
|||||||
(N_ "Include transactions to/from filter accounts only."))
|
(N_ "Include transactions to/from filter accounts only."))
|
||||||
(vector 'exclude
|
(vector 'exclude
|
||||||
(N_ "Exclude Transactions to/from Filter Accounts")
|
(N_ "Exclude Transactions to/from Filter Accounts")
|
||||||
(N_ "Exclude transactions to/from all filter accounts.")))))
|
(N_ "Exclude transactions to/from all filter accounts.")))
|
||||||
|
#f
|
||||||
|
(lambda (x)
|
||||||
|
(gnc-option-db-set-option-selectable-by-name
|
||||||
|
options gnc:pagename-accounts optname-filterby
|
||||||
|
(not (eq? x 'none))))))
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(gnc:register-trep-option
|
(gnc:register-trep-option
|
||||||
|
Loading…
Reference in New Issue
Block a user