* Can 'automatic enabled' be disabled in a plugin?

For users to report plugin bugs and request plugin enhancements; and for authors to test new/new versions of plugins, and to discuss plugin development (in the Programming Technicalities sub-forum). If you want advice on choosing or using a plugin, please ask in General Usage or an appropriate sub-forum.
Post Reply
avatar
JoopvB
Superstar
Posts: 328
Joined: 02 May 2015 14:32
Family Historian: V7

Can 'automatic enabled' be disabled in a plugin?

Post by JoopvB » 28 Jan 2021 21:03

I use automatic enabled sources a lot (great feature). But when I run my DEA in a new (empty) source it's complaining that enable should be disabled. No idea why; it's pretty clear where I am and what I try to do.

It would be great if I could somehow switch this behavior off when starting the DEA. Can it be done?

User avatar
ColeValleyGirl
Megastar
Posts: 4854
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Can 'automatic enabled' be disabled in a plugin?

Post by ColeValleyGirl » 29 Jan 2021 08:26

I suspect that if you could run a DEA while Automatic Citation is Enabled, you'd end up citing both the Prepared Source and the Source selected for Automatic Citation, which is probably not what you want. Hence, you need to disable Automatic Citation before running a DEA.

avatar
JoopvB
Superstar
Posts: 328
Joined: 02 May 2015 14:32
Family Historian: V7

Re: Can 'automatic enabled' be disabled in a plugin?

Post by JoopvB » 31 Jan 2021 11:43

I completely agree; that's why I'd like to be able to disable it from within my DEA plugin instead of by hand every time.

I see no difference between doing it by hand or as a step in the DEA plugin (if necessary the plugin might present a warning and ask for an OK).

User avatar
ColeValleyGirl
Megastar
Posts: 4854
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Can 'automatic enabled' be disabled in a plugin?

Post by ColeValleyGirl » 31 Jan 2021 11:56

The FH API for Lua doesn't support modifying FH settings, so it can't be done by a plugin.

avatar
JoopvB
Superstar
Posts: 328
Joined: 02 May 2015 14:32
Family Historian: V7

Re: Can 'automatic enabled' be disabled in a plugin?

Post by JoopvB » 31 Jan 2021 15:17

It is as it is. :)

Thanks.

Post Reply