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):
OS: OS Name Microsoft Windows 10 Enterprise
Browser N/A
Version Version 10.0.19045 Build 19045
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)
Describe the bug Looping error on adding a file while no category are available.![bug pluggin soundboard](https://github.com/PhoenixWyllow/Soundboard4MacroDeck2/assets/166071109/d8155f81-1af7-4a87-9623-33d9cb7e1747)
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)