Bugzilla – Bug 2119
Linux: Incorrect behaviors in "Manage Macro"
Last modified: 2019-08-07 13:21:31 UTC
Tested on Linux with Audacity 2.3.3 alpha. Marked as P2 as this can cause work to be deleted and unrecoverable. Examples 1) "Rename" creates two entries in the Macro list with the same name. Both versions appear to be identical. 2) Remove ONE of the duplicate Macros. Note that ALL instances of the Macro are permanently deleted. 3) When selecting either of the shipped Macros ("Fade Ends" or "MP3 Conversion"), the "Remove" and "Rename" buttons are greyed out. This implies that these Macros are "protected", but you can still modify the commands, add new commands or delete commands from them (so apparently NOT protected). 4) If a shipped Macro is modified, there is no obvious way to restore the shipped version. The modified, shipped Macro can be restored by deleting it and restarting Audacity, then Audacity will restore the shipped Macro, but shipped Macros cannot be deleted via the GUI. The files have to be manually deleted. Also, the Macro Manager provides no way to manage a large number of Macros. There's just one alpha-numeric ordered list of Macros in the left column, with a buggy "rename" option. In addition to fixing the specific bug described in "steps to reproduce", we perhaps need a wiki Proposal for improving the Macro Manager.
On W10 with 2.3.3 alpha and on macOS 10.14.5 with 2.3.3 after the rename there is no duplicate, just the correctly renamed macro
Bug 2160 addresses items 3 and 4 in comment #0 (which apply to all platforms). So this bug is now JUST about the linux issue of 1 and 2 in comment #0
(In reply to James Crook from comment #2) James wrote: > Bug 2160 addresses items 3 and 4 in comment #0 I've not tested that fix yet, but that looks like a good fix, so I'm happy for this bug to be considered as points 1 and 2 only.
DEVEL - FIX MADE https://github.com/audacity/audacity/commit/fb11eeaeddf27d327551660d59a4faf183453dd5 The bug was caused by Linux updating the list AFTER Audacity had modified it. On Windows the list update happens before. Additionally fixed an issue where the list of macros in the menu does not update on a rename. That issue was all platforms.
Works for me.