gyng / save-in

WebExtension for saving media, links, or selections into user-defined directories
MIT License
204 stars 25 forks source link

change menuItemCounter to reset count on every submenu #199

Closed mfaizsyahmi closed 1 year ago

mfaizsyahmi commented 1 year ago

change type: object → array. splice(truncate) it to the current depth, thus resetting the counts of the farther depths. change how it's put in the id to try prevent id clashes from these changes.

mfaizsyahmi commented 1 year ago

this is to address issue #198

gyng commented 1 year ago

Thanks for this, I'll try to review and release when make time.

gyng commented 1 year ago

Quickly tested locally, and it appears to work. Thanks for the fix! I'll apply some formatting fixes on my end.