Option to delete all action blocks associated to a macro

Shiffo

Active member
When deleting a macro it leaves behind the action blocks, I believe a prompt asking if you also want to delete them would be good. To not get flooded with old useless action blocks

Have a nice vacation !
See around when you are back 👋
 
Last edited:

Shiffo

Active member
Also could it be possible to check if the action blocks to delete are used by another macro before deleting ? So the action blocks that are used by other macros won't get deleted.

Same logic could be applied to global variables
 

Qarboz

Well-known member
Sorry to intrude on the discussion.
IMHO action blocks can be likened to functions in programming languages, so they should be "untethered" from macros. However, again IMHO, in the "Action Blocks" section it would be convenient to have a menu item to highlight "orphan" (uncalled) action blocks, so that you can decide which ones to delete. Same thing for global variables.
 

Dm114

Well-known member
Sorry to intrude on the discussion.
IMHO action blocks can be likened to functions in programming languages, so they should be "untethered" from macros. However, again IMHO, in the "Action Blocks" section it would be convenient to have a menu item to highlight "orphan" (uncalled) action blocks, so that you can decide which ones to delete. Same thing for global variables.
Both of them are already noted as "(Not used)"...

If you don't have thousands of them, in my opinion it's not really bothering to have a look from to time and make some cleaning...

I even noticed an old bug when some initially local variables are in both sides (local AND global). Maybe sometimes due to changing names while writing the macro. To quickly identify them in the Global list, I generally spell the real global ones with capital letters (at least first letters). 😉
 

Shiffo

Active member
What you say is true. However this post was intended just as a suggestion for future improvements, whenever @MacroDroidDev is free and has time to work on those details.

Wich I know is unlikely to happen anytime soon since he has more than enough work already with the Google Changes and everything (keeping everything working as intended)
 
Top