View Single Post
Old 03-27-2021, 09:36 PM   #456
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,211
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ownedbycats View Post
I don't see one?
Look in the customize dialog, not the chain links dialog. Next to the chain name.

Edit: Sorry. I thought you wanted to disable a chain not an action. If you want to disable an action set to condition that evaluate to false. The same as you did. But and easier way to enter 1 as a template and 2 as condition value (using the = operator), that will always evaluate to false.

Quote:
Originally Posted by ownedbycats View Post
Also: At one point I thought there was an option to be able to run a chain inside another chain but I can't seem to find it. Was I mistaken?

Quote:
Originally Posted by capink View Post
On a side note, I thought about giving the users the ability to call other chains through Calibre Actions or through a separate action, and maybe supplementing that with a another flow control action. I dismissed the idea because it can cause problems like circular dependency. You can prevent a chain from directly calling itself, but it can do so indirectly through another chain that might reference it, and this would require a complicated dependency checking before running chains. You can write these action(s) for yourself as custom actions if you want this be a generalized solution, but I think it is opening a can of worms.

Quote:
Originally Posted by ownedbycats View Post
- Start ActionChain#1
- It calls ActionChain#2
- But then that calls ActionChain#1
- Which again calls ActionChain#2
- And once again, it calls ActionChain#1...

I don't think there's any good way to halt a chain in progress, is there?
I did not include this feature because of the reasons outlined in the quotes above. However, I did demonstrate how to run it from code.

Last edited by capink; 03-27-2021 at 09:49 PM.
capink is online now   Reply With Quote