ascent icon indicating copy to clipboard operation
ascent copied to clipboard

If ascent_actions.yaml exists, it overrides what the user passes to Ascent::execute()

Open agcapps opened this issue 5 months ago • 2 comments

Ascent::execute() lets the user pass in a Node with actions: https://github.com/Alpine-DAV/ascent/blob/develop/src/libs/ascent/ascent.cpp#L371

But then, if CheckForSettingsFile() finds a file named ascent_actions.yaml, that file replaces whatever the user passed to execute(): https://github.com/Alpine-DAV/ascent/blob/develop/src/libs/ascent/ascent.cpp#L135

This is unpleasantly surprising, at least. I think if a user calls execute() passing in actions, Ascent should ignore its default.

agcapps avatar Aug 29 '24 17:08 agcapps