PhoenixWyllow / Soundboard4MacroDeck2

A soundboard plugin for Macro Deck 2
MIT License
4 stars 3 forks source link

(Bug) Adding file without having a Category setup first #53

Open DrBely opened 4 months ago

DrBely commented 4 months ago

Describe the bug Looping error on adding a file while no category are available. bug pluggin soundboard

To Reproduce

Install of the pluggin. Skipped the config. Downloaded the sound on this page : https://www.myinstants.com/en/instant/helldivers-2-extract-21943/ Went to the Pluggin in Macro Deck 2. Audio files and added it. Then the same error appeared in loop.

You have to exit Macro Deck 2 or hold ESC to be able to go out of the loop. If you go back to pluggin--> Audio files, the error appear again.

The sound can still be used and played if you don't go back to the pluggin-->Audio files

soundboard.zip

If I create a category before, it does not do the issue BUT, if I delete all the category names after adding the files, then try to change the category of a file to an empty name, the issue rise again.

Expected behavior Nothing

Desktop (please complete the following information):

Additional context

My suggestions for a simple solution : -Force the user to create a category first by asking in which category the user wants to add the file and adding a popup when pressing OK saying "Please create a category first" (the advantage of this would be the user choosing the category upon adding the file and not in a different action afterward) -Creating a Default category that cannot be removed upon installation of the pluggin(Mandatory for this solution)

-(or allowing the pluggin to have no category when adding files)